Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you migrate backwards to before the first migration in South?

Can you migrate an app backwards to before its first migration in Django South? If not, are there plans to add such functionality, perhaps using an option passed to migrate?

like image 436
CJ Gaconnet Avatar asked Jun 23 '11 21:06

CJ Gaconnet


1 Answers

./manage.py migrate myapp zero

See: https://docs.djangoproject.com/en/1.9/ref/django-admin/#migrate

In Django 1.11: https://docs.djangoproject.com/en/1.11/ref/django-admin/#migrate

like image 196
Chris Pratt Avatar answered Oct 17 '22 12:10

Chris Pratt