Opened 11 months ago

Closed 11 months ago

Last modified 11 months ago

#23327 closed Cleanup/optimization (fixed)

Add "migrate <app_label> zero" syntax to migrate help message

Reported by: nikolas Owned by: nobody
Component: Documentation Version: 1.7-rc-2
Severity: Normal Keywords:
Cc: areski Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

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.

Change History (6)

comment:1 Changed 11 months ago by claudep

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted
  • Type changed from Uncategorized to Cleanup/optimization

comment:2 Changed 11 months ago by areski

a simple PR to add how "zero" works: https://github.com/django/django/pull/3095

comment:3 Changed 11 months ago by areski

  • Cc areski added
  • Has patch set

comment:4 Changed 11 months ago by claudep

  • Triage Stage changed from Accepted to Ready for checkin

comment:5 Changed 11 months ago by Tim Graham <timograham@…>

  • Resolution set to fixed
  • Status changed from new to closed

In 0396cd8f190b39597516abf2162542b196cf0c6d:

Fixed #23327 -- Added 'zero' syntax to migrate help message

comment:6 Changed 11 months ago by Tim Graham <timograham@…>

In 0396cd8f190b39597516abf2162542b196cf0c6d:

Fixed #23327 -- Added 'zero' syntax to migrate help message

Note: See TracTickets for help on using tickets.
Back to Top