mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #23728 -- Added the --exit option to makemigrations.
If no changes that need migrations are found, `makemigrations --exit` exits with error code 1.
This commit is contained in:
parent
ab89414f40
commit
deb607648e
5 changed files with 40 additions and 8 deletions
|
@ -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>]]
|
||||
---------------------------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue