0

I trying to revert the migrations of my Django application. I have five migrations which are synced with the database. I use the following command:

$ python manage.py migrate zero

This fails with the following error message:

CommandError: App 'zero' does not have migrations (you cannot selectively sync unmigrated apps)

JJD
  • 50,076
  • 60
  • 203
  • 339

1 Answers1

2

You should provide the app label to migrate:

python manage.py migrate myapp zero
catavaran
  • 44,703
  • 8
  • 98
  • 85