Could you provide the feature deploy scripts single file per object?
chuck
Posts: 29 Bronze 2
in SQL Compare
Hi,
I am using sql compare to generate scripts by compare two commit in sql source control.
The problem is, when I try to deploy the script, there is only one button to save scripts. When I have two procedures to deploy, sql compare will generate only one script file for these two procedures.
Since we are using Flyway to sync the procedures to production, which means we need split the procedures migration script into two independent files. The feature is somewhat like "single file per object" in ssms.
Tagged:
Answers
If you want the procedures as repeatable migrations (the scripts that start with R_), then you're right, there's no way to do this in SQL Compare. The correct tool to use would be SQL Change Automation (which doesn't at this time use Flyway, but a very similar migrations framework under the hood), which will dby default auto-script all table changes in versioned scripts, and all "programmable objects" in their own separate scripts (akin to repeatable migrations).
Product Manager
Redgate Software