I created a new app with some models and now I noticed that some of the models are poorly thought out. As I haven't committed the code the sensible thing would be to migrate the database to last good state and redo the migration with better models. In this case the last good state is database where the new app doesn't exist.
How can I migrate back from initial migration in Django 1.7?
In South
one could do:
python manage.py migrate <app> zero
Which would clear <app>
from migration history and drop all tables of <app>
.
How to do this with Django 1.7 migrations?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…