DevOps: Should migration-based deployments use idempotent scripts?
In my last DevOps-related post, I discussed some of the issues that arise when using migration-based deployments.
Migration-based deployments are based on a series of T-SQL scripts that apply changes to your database from its current state to a desired final state.
One of the questions that arises though, is whether or not these T-SQL scripts should be idempotent ie:
Should the script be written so that you get the same outcome if you run the scripts multiple times?
2018-03-02