-
-
Notifications
You must be signed in to change notification settings - Fork 43.4k
Description
Roadmap URL
Suggestions
Description
Migrations is the structured way to manage changes in a relational database schema over time. Each migration describes a small change, such as adding or removing a table, column, index, etc, to transform the database from one version to another. They are maintained under version control along with your code (like Git manages your code by keeping track of each commits), and when run, make schema updates repeatable and reversible. Migrations keep development, testing, and production schemas in sync by running pending changes to move the database from its current state to the desired state, all while allowing you to plan, test, and share schema updates safely without having to rebuild the database manually every time.
Resources Guide Links
Best for beginners
https://www.dbvis.com/thetable/introduction-to-database-migration-a-beginners-guide/
Advanced
https://docs.djangoproject.com/en/5.2/topics/migrations/#module-django.db.migrations
https://www.prisma.io/dataguide/types/relational/what-are-database-migrations
https://medium.com/@kimberly.d.benton/alembic-migrations-1191d67f9538
Video Link