Fixed #31402 -- Added migrate --check option.

Command exits with non-zero status if unapplied migrations exist.
This commit is contained in:
Gordon Pendleton 2020-03-26 05:08:58 -04:00 committed by Mariusz Felisiak
parent 4216225480
commit d0da2820ca
4 changed files with 53 additions and 0 deletions

View file

@ -865,6 +865,13 @@ with hundreds of models.
Suppresses all user prompts. An example prompt is asking about removing stale
content types.
.. django-admin-option:: --check
.. versionadded:: 3.1
Makes ``migrate`` exit with a non-zero status when unapplied migrations are
detected.
``runserver``
-------------