[1.7.x] Fixed #22511 -- Added args to migrations management commands.
Backport of 83413c53d2
from master
This commit is contained in:
parent
cda5745df0
commit
72493b1b7c
|
@ -27,6 +27,7 @@ class Command(BaseCommand):
|
||||||
|
|
||||||
help = "Creates new migration(s) for apps."
|
help = "Creates new migration(s) for apps."
|
||||||
usage_str = "Usage: ./manage.py makemigrations [--dry-run] [app [app ...]]"
|
usage_str = "Usage: ./manage.py makemigrations [--dry-run] [app [app ...]]"
|
||||||
|
args = "[app_label [app_label ...]]"
|
||||||
|
|
||||||
def handle(self, *app_labels, **options):
|
def handle(self, *app_labels, **options):
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,7 @@ class Command(BaseCommand):
|
||||||
)
|
)
|
||||||
|
|
||||||
help = "Updates database schema. Manages both apps with migrations and those without."
|
help = "Updates database schema. Manages both apps with migrations and those without."
|
||||||
|
args = "[app_label] [migration_name]"
|
||||||
|
|
||||||
def handle(self, *args, **options):
|
def handle(self, *args, **options):
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@ class Command(BaseCommand):
|
||||||
|
|
||||||
help = "Squashes an existing set of migrations (from first until specified) into a single new one."
|
help = "Squashes an existing set of migrations (from first until specified) into a single new one."
|
||||||
usage_str = "Usage: ./manage.py squashmigrations app migration_name"
|
usage_str = "Usage: ./manage.py squashmigrations app migration_name"
|
||||||
|
args = "app_label migration_name"
|
||||||
|
|
||||||
def handle(self, app_label=None, migration_name=None, **options):
|
def handle(self, app_label=None, migration_name=None, **options):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue