How to restart Django Migrations?


To reset an app back to the initial “zero” migration:

python migrate --fake myapp zero

Alternatively, you may want to completely start again.

Delete all migration files:

find . -path "*migrations/*.py" -not -name -delete

Now you can recreate the database and migrations:

dropdb mydb; createdb mydb # Recreate postgres
python makemigrations
python migrate