Overview - Database migration in deployment
What is it?
Database migration in deployment means changing the structure of a database safely while an application is running. It involves updating tables, columns, or data types without losing existing data. This process helps keep the database in sync with the application's code changes. It is done using special tools that track and apply these changes step-by-step.
Why it matters
Without database migration, updating an app's database would be risky and error-prone. Developers might lose data or break the app if they change the database manually. Migration tools automate and organize these changes, making deployments safer and faster. This means users get new features without downtime or data loss.
Where it fits
Before learning database migration, you should understand basic databases and how to use Flask with a database. After mastering migration, you can learn advanced deployment techniques and continuous integration. Migration fits between database basics and full app deployment workflows.