1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #25604 -- Added makemigrations --check option.

Command exits with non-zero status if changes without migrations exist.
This commit is contained in:
Jon Dufresne
2015-10-20 17:39:48 -07:00
committed by Tim Graham
parent a7bb5af50b
commit 3c7d2ee881
5 changed files with 54 additions and 8 deletions

View File

@@ -157,6 +157,10 @@ Management Commands
allows specifying the message level that will cause the command to exit with
a non-zero status.
* The new :djadminopt:`makemigrations --check <--check>` option makes the
command exit with a non-zero status when model changes without migrations are
detected.
Migrations
^^^^^^^^^^
@@ -268,7 +272,8 @@ Features deprecated in 1.10
Miscellaneous
~~~~~~~~~~~~~
* ...
* The ``makemigrations --exit`` option is deprecated in favor of the
:djadminopt:`--check` option.
.. _removed-features-1.10: