I created a new application with some models, and now I noticed that some of the models are poorly thought out. Since I did not pass the code, it would be wise to switch the database to the last good condition and redo the migration using the best models. In this case, the last good condition is the database in which the new application does not exist.
How can I transfer back from initial migration to Django 1.7?
In South you can do:
python manage.py migrate <app> zero
To clear the <app> from the migration history and discard all <app> tables.
How to do this with migrations of Django 1.7?
Seppo ErviΓ€lΓ€ Sep 01 '14 at 13:24 2014-09-01 13:24
source share