diff options
| author | David Vaz <davidmgvaz@gmail.com> | 2019-09-27 14:31:58 -0700 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-09-30 09:47:55 +0200 |
| commit | 43c894ffe773efec5c95d65c3b5edcddafa8e78f (patch) | |
| tree | 320d1cd8d0d257d60590a9e5dc31a81018596c17 | |
| parent | 4116b369b191f1830bbe761fa7fb29bf1becc8ef (diff) | |
[2.2.x] Doc'd that migrate commmand accepts a unique migration name prefix.
Backport of e02f67ef2d03d48128e7a118bf75f0418e24e8ac from master
| -rw-r--r-- | docs/ref/django-admin.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 2e076095d6..66e92bae6d 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -801,8 +801,10 @@ The behavior of this command changes depending on the arguments provided: * ``<app_label> <migrationname>``: Brings the database schema to a state where the named migration is applied, but no later migrations in the same app are applied. This may involve unapplying migrations if you have previously - migrated past the named migration. Use the name ``zero`` to migrate all the - way back i.e. to revert all applied migrations for an app. + migrated past the named migration. You can use a prefix of the migration + name, e.g. ``0001``, as long as it's unique for the given app name. Use the + name ``zero`` to migrate all the way back i.e. to revert all applied + migrations for an app. .. warning:: |
