Working with migration scripts
Published 18 February 2016
As of Nov 1, 2023, if you want to use migration scripts for deployments, we recommend transitioning to Flyway.
Learn more about transitioning from SQL Source Control to Flyway or email us if you have any questions.
Note: You may NOT see the Migrations tab in SQL Source Control, since this was deprecated for all new projects in Jan 2020.
What are migration scripts?
When using a state approach, to deploy changes from version control the SQL Compare engine calculates a deployment script by comparing the state held in version control with the deployment target.
Some schema changes can't be deployed using a state approach. When a deployment involves data changes, it might not deploy successfully, or you could lose data.
Using a migrations deployment approach gives you confidence that these schema changes are deployed correctly. This is especially important when you set have automated your database deployments.
When to use migration scripts
Below are some example changes that require migration scripts to deploy correctly: