[Django] #23327: Add "migrate <app_label> zero" syntax to migrate help message

67 views
Skip to first unread message

Django

unread,
Aug 20, 2014, 5:03:30 PM8/20/14
to django-...@googlegroups.com
#23327: Add "migrate <app_label> zero" syntax to migrate help message
-------------------------------+----------------------
Reporter: nikolas | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 1.7-rc-2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+----------------------
There's an essential piece of info in the documentation for `./manage.py
migrate` here:

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.

Django

unread,
Aug 21, 2014, 3:01:35 AM8/21/14
to django-...@googlegroups.com
#23327: Add "migrate <app_label> zero" syntax to migrate help message
--------------------------------------+------------------------------------
Reporter: nikolas | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.7-rc-2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by claudep):

* 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>

Django

unread,
Aug 21, 2014, 8:43:07 AM8/21/14
to django-...@googlegroups.com
#23327: Add "migrate <app_label> zero" syntax to migrate help message
--------------------------------------+------------------------------------
Reporter: nikolas | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.7-rc-2

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------

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>

Django

unread,
Aug 21, 2014, 8:43:27 AM8/21/14
to django-...@googlegroups.com
#23327: Add "migrate <app_label> zero" syntax to migrate help message
--------------------------------------+------------------------------------
Reporter: nikolas | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.7-rc-2

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by areski):

* cc: areski (added)
* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/23327#comment:3>

Django

unread,
Aug 22, 2014, 3:03:37 AM8/22/14
to django-...@googlegroups.com
#23327: Add "migrate <app_label> zero" syntax to migrate help message
-------------------------------------+-------------------------------------
Reporter: nikolas | Owner: nobody
Type: | Status: new
Cleanup/optimization | Version: 1.7-rc-2
Component: Documentation | Resolution:
Severity: Normal | Triage Stage: Ready for
Keywords: | checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by claudep):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/23327#comment:4>

Django

unread,
Aug 22, 2014, 1:45:56 PM8/22/14
to django-...@googlegroups.com
#23327: Add "migrate <app_label> zero" syntax to migrate help message
-------------------------------------+-------------------------------------
Reporter: nikolas | Owner: nobody
Type: | Status: closed
Cleanup/optimization | Version: 1.7-rc-2
Component: Documentation | Resolution: fixed

Severity: Normal | Triage Stage: Ready for
Keywords: | checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* 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>

Django

unread,
Aug 23, 2014, 9:12:29 AM8/23/14
to django-...@googlegroups.com
#23327: Add "migrate <app_label> zero" syntax to migrate help message
-------------------------------------+-------------------------------------
Reporter: nikolas | Owner: nobody

Type: | Status: closed
Cleanup/optimization | Version: 1.7-rc-2
Component: Documentation | Resolution: fixed
Severity: Normal | Triage Stage: Ready for
Keywords: | checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------

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>

Reply all
Reply to author
Forward
0 new messages