diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2015-10-20 17:39:48 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-10-24 14:45:00 -0400 |
| commit | 3c7d2ee881b13c7fdd0aa90b0aba0430310786de (patch) | |
| tree | 72a32484c67dbfba1542b1a88181e5bf2c06cb91 /docs/ref | |
| parent | a7bb5af50be7b0efbb784011a41fd25fdfe4d42c (diff) | |
Fixed #25604 -- Added makemigrations --check option.
Command exits with non-zero status if changes without migrations exist.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/django-admin.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 27a1a31423..8d45439300 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -699,10 +699,21 @@ of a generated one. .. django-admin-option:: --exit, -e +.. deprecated:: 1.10 + + Use the :djadminopt:`--check` option instead. + The ``--exit`` option will cause ``makemigrations`` to exit with error code 1 when no migrations are created (or would have been created, if combined with ``--dry-run``). +.. django-admin-option:: --check + +.. versionadded:: 1.10 + +The ``--check`` option makes ``makemigrations`` exit with a non-zero status +when model changes without migrations are detected. + migrate [<app_label> [<migrationname>]] --------------------------------------- |
