Modify

Ticket #366 (assigned enhancement)

Opened 4 years ago

Last modified 3 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:

Description

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.

Attachments

Change History

comment:1 Changed 4 years ago by andrew

  • Status changed from new to assigned
  • Milestone set to 1.0
View

Add a comment

Modify Ticket

Action
as assigned
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.