How to unapply the very first migration in django 1.7

6.4k Views Asked by At

It looks like rolling back to any migration is possible using:

./manage.py migrate <app> <migration_to_go_to>

However, this requires an actual migration to be applied, and I need to rollback the very first migration!

Specifically, I want to rollback the built-in "sessions" app (which only has one migration, "0001_initial".)

Is there a way to achieve this?

Thanks!

1

There are 1 best solutions below

3
seddonym On BEST ANSWER

Just do:

./manage.py migrate <app> zero