what’s database migration
content
Scenario
- during development, we might need to add table or alter table (adding columns etc)
- we want a standard way to do it, like a script.
- database migration is the controlled way of evolving a database
- it’s basically a version control for databases
- it’s like git for code changes
- just like any version control, it tracks changes and allows rollbacks