diff options
| author | Tim Heap <tim@timheap.me> | 2014-11-11 15:41:55 +1100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-11-28 07:48:39 -0500 |
| commit | deb607648ed7d484a90474b6da48642b4f39bca7 (patch) | |
| tree | f9728781a87ed9b8f708aa9803c19c3607c7e0e0 /docs | |
| parent | ab89414f40db1598364a7fe4cfac1766cacd2668 (diff) | |
Fixed #23728 -- Added the --exit option to makemigrations.
If no changes that need migrations are found, `makemigrations --exit`
exits with error code 1.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/django-admin.txt | 8 | ||||
| -rw-r--r-- | docs/releases/1.8.txt | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 07f7093634..85864d78b8 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -719,6 +719,14 @@ a merge. The ``--name`` option allows you to give the migration(s) a custom name instead of a generated one. +.. django-admin-option:: --exit, -e + +.. versionadded:: 1.8 + +The ``--exit`` option will cause ``makemigrations`` to exit with error code 1 +when no migration are created (or would have been created, if combined with +``--dry-run``). + migrate [<app_label> [<migrationname>]] --------------------------------------- diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt index 5df0cc1bd1..8f4053168d 100644 --- a/docs/releases/1.8.txt +++ b/docs/releases/1.8.txt @@ -333,6 +333,9 @@ Management Commands :setting:`FIXTURE_DIRS` contains duplicates or a default fixture directory path (``app_name/fixtures``), an exception is raised. +* :djadmin:`makemigrations` now supports an :djadminopt:`--exit` option to + exit with an error code if no migrations are created. + Middleware ^^^^^^^^^^ |
