Modify

Ticket #7 (closed enhancement: fixed)

Opened 6 years ago

Last modified 2 years ago

Make changes in models automatic

Reported by: patrick.lauber@… Owned by: andrew
Priority: major Milestone: 0.5
Component: commands Version:
Keywords: Cc:

Description

Don't just create a skeleton. Try to determine and then to write them in a new migration file.

with a wizard you could even ask if there where any renames

Attachments

Change History

comment:1 Changed 6 years ago by andrew

  • Status changed from new to accepted
  • Milestone 0.4 deleted

Yes, this is verging on django-evolution, and exactly what we're probably going to head towards as we discuss merging features from all three.

comment:2 Changed 6 years ago by amccurdy

The startmigration command tries to cover common use cases for migration file generation. Currently, it covers the following use cases:

  • Creating an "initial" file that generates creates for all objects syncdb would create.
  • Creating a new table(s) with the --model option.

We'll also be adding a --field option for adding a field to an existing model, since that seems like a pretty common use case.

If you have a use case that isn't covered, and feel it's common, please let us know.

comment:3 Changed 6 years ago by andrew

  • Status changed from accepted to closed
  • Resolution set to wontfix

Closing this, as it's unlikely we'll write a model history tracker in the near future, and django-evolution does this well - no need to reinvent the wheel in that area.

comment:4 Changed 5 years ago by andrew

  • Status changed from closed to reopened
  • Resolution wontfix deleted
  • Milestone set to 0.5

Reopening! This feature is now made possible by the ORM Freezer, and so it will exist in a form at least as capable as django-evolution's in 0.5.

comment:5 Changed 5 years ago by andrew

  • Status changed from reopened to accepted

comment:6 Changed 5 years ago by andrew

  • Status changed from accepted to closed
  • Resolution set to fixed

Closing this, as the essence of it is done.

View

Add a comment

Modify Ticket

Action
as closed
Author


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

 
Note: See TracTickets for help on using tickets.