DevOps: Should databases use migration-based or state-based deployment?
One key decision that you need to take when you decide to include databases in your DevOps processes, is how you will store the data model. What flows from that is how you will do deployment.
Migration-Based Deployment
This is still the most common model today and is a very traditional way to work with databases during development.
At some point, you create an initial database, and after that, you keep every script that’s needed to bring the schema up to the current point. Those scripts will often include data fixes or new values for reference tables, as well as the DDL required for the schema changes.
2018-02-02