Ticket #366 (assigned enhancement)
Automatically create 3 migrations for changes which include data
|Reported by:||pauloswald@…||Owned by:||andrew|
When changing the schema, the docs recommend creating 3 migrations:
- schema change (add columns)
- data change
- schema change (delete columns and/or tighten column constraints)
This can come from a column rename or tightening data constraints (changing a column to null=False )
It would be nice if the --auto flag recognized that a model change could potentially affect existing data and create the three migrations (and the correct fake ORMs) needed for each step.
Then the user simply needs to fill out the data migration part.