Ticket #366 (assigned enhancement)

Opened 6 years ago

Last modified 4 years ago

Automatically create 3 migrations for changes which include data

Reported by: pauloswald@… Owned by: andrew
Priority: major Milestone: 1.0
Component: migrations Version: 0.6.2
Keywords: Cc:


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.

Change History

comment:1 Changed 6 years ago by andrew

  • Status changed from new to assigned
  • Milestone set to 1.0
Note: See TracTickets for help on using tickets.