django/south : redundant add_column? -
Within the ABC application, I added a unique barrier to a model, made a change and
< Code> ./manage.py schemamigration abc --auto
He created a migration file but with the expected change as well, the add_column
statement in the new migration file Which are already adding columns added to the migration (and which is the subject of migrate
)
Why am I actually thinking this has happened and What to do about it.
Will I ignore the add_column
statement on migrate
?
OK, thanks for the # django-south irc channel I know this.
This type of problem can arise when the activity has occurred in various source control branches and, as a result of the merge, the dictionary of frozen models, which appears in the bottom of a South Migration file Some things have already been transferred. The result is that the next schemigrade tries to produce "missing" changes.
Before migrating, edit the migration file created by the schemementation manually. This will get things back once.
There is information about some issues in the later part of this section.
# django-south curls and thank you for taking it.
Comments
Post a Comment