Django Migrations without Downtime
Note that in the below instructions, migrations are all run manually and are not an automatic part of the deployment process.
Adding Fields or Tables
Adding a (nullable) field or a new table
- Make the model or column addition in your code.
- Generate the model-change migrations locally.
- Make two separate pull requests, one containing the model change, one containing the newly-generated migrationst. Note that the model-change migration should only contain the model change code, not any supplemental code using the newly-structured model.