Django's Migrations: A Retrospective
summary
Adds migrations into core with a concrete design: a schema editor plus field.deconstruct, a loader/graph, an autodetector that diffs States, an optimizer that collapses redundant ops, and an executor/recorder that applies and records results. Claims the new operation-based format removes huge serialized state, handles circular foreign‑key deps, and mostly works for Django 1.7, but flags real limitations: swappable user model cannot change during migrations and there is a MySQL test fixture hack for test performance.
AI-written summary · about
chapters (6)
- 0:00Start
- 1:13The Initial Plan
- 2:33The Revised Plan
- 3:10The Revised Revised Plan
- 6:38makemigrations
- 9:52migrate
related talks
57mDjangoCon 2008 Panel: Schema Evolution
23mBeyond the Basics of Migrations
21mMigrating to Success: Unleashing the Power of Django Migrations
33mPeaceful Django Migrations with Efe Öge
26mDjango migrations, friend or foe? Optimize them for testing
31mSpace Django: Migrating and Redesigning a Database while Hunting for Satellites.
31mBeyond Alembic and Django Migrations
36mUp And Down Again: A Migration's Tale
