Friday, April 24, 2015

Database and migrations are out of sync.

Hi everyone. In my current project there is a great confusion of migrations and it often ends up in an error when I try to apply migrations because the fields the migrate tries to create are already in the database. Is there any way for migrate to create fields that are not in the database and skip those that are already there? Sort of a partial migration. Now I have to edit migration files manually commenting the fields that are already in the database. Takes a lot of time for I can't compare the database state and the state of migrations. So I have to do it field by field...

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9e80a555-2b84-4a53-a4eb-2096f3e4acca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment