Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PublishDacPac Feature Request: Generate schema change script action #19

Open
binte opened this issue Apr 15, 2020 · 1 comment
Open

Comments

@binte
Copy link

binte commented Apr 15, 2020

I am trying to allow a pipeline to publish a schema change to an on-premises SQL Server 2017 instance, but I want to do that in two steps:

  • Generate schema change script action
  • After approval, publish

I know that can be achieved by publishing to SQL Azure by setting deploymentAction: 'Script' and then deploymentAction: 'Publish'

Can this be done by using this extension? I have gone through the documentation, and it does not seem possible. If so, can you provide an example?

@DrJohnT
Copy link
Owner

DrJohnT commented Jan 11, 2021

The whole point of SSDT / DACPACs methodology is that they generate a SqlCmd script on-the fly depending upon the status of the target database. Personally, I let the tool do its job. However, I understand for some shops, they will want to see the change script. I will take a look at adding this feature request sometime in the future. If you fancy your hand, you could add it to the underlying PowerShell module PublishDacPac yourself and issue a pull request. https://github.com/DrJohnT/PublishDacPac

@DrJohnT DrJohnT changed the title Generate schema change script action PublishDacPac Feature Request: Generate schema change script action Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants