Catalogue / 3yourmind-2019-django-backward-compatible-migrations

3YOURMIND keeps Django migrations backward compatible, enforced by a linter, so blue-green deploys need no downtime

3YOURMIND. Django REST Framework backends and their database migrations.

Organisation
3YOURMIND
Evidence
Reported from production
Source
Keeping Django database migrations backward compatible

3YOURMIND-Tech (Medium), published 2019-01-11

Records

Decision#d1

Keep database migrations backward compatible so old and new code can share one database during a blue-green switch

Decision#d2

Add NOT NULL columns with a database-level default, and delete columns in two steps through a deprecation wrapper

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.