https://docs.djangoproject.com/en/1.7/ref/django-admin/#django-admin-
migrate
which explains how to roll back a migration to before the initial
migration. This is the `./manage.py migrate <app_label> zero` syntax.
I think this should be explained in the help message when you run
`./manage.py migrate --help`, as well.
--
Ticket URL: <https://code.djangoproject.com/ticket/23327>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 0
* type: Uncategorized => Cleanup/optimization
* needs_tests: => 0
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/23327#comment:1>
Comment (by areski):
a simple PR to add how "zero" works:
https://github.com/django/django/pull/3095
--
Ticket URL: <https://code.djangoproject.com/ticket/23327#comment:2>
* cc: areski (added)
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/23327#comment:3>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/23327#comment:4>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"0396cd8f190b39597516abf2162542b196cf0c6d"]:
{{{
#!CommitTicketReference repository=""
revision="0396cd8f190b39597516abf2162542b196cf0c6d"
Fixed #23327 -- Added 'zero' syntax to migrate help message
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23327#comment:5>
Comment (by Tim Graham <timograham@…>):
In [changeset:"0396cd8f190b39597516abf2162542b196cf0c6d"]:
{{{
#!CommitTicketReference repository=""
revision="0396cd8f190b39597516abf2162542b196cf0c6d"
Fixed #23327 -- Added 'zero' syntax to migrate help message
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23327#comment:6>