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!
Just do:
./manage.py migrate <app> zero
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With