summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorGordon Pendleton <wgordonw1@gmail.com>2020-03-26 05:08:58 -0400
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-03-26 20:12:39 +0100
commitd0da2820cab495c35eac10680213f927be8b91b0 (patch)
tree0f065f06f8c84994741acc57f0814fb8677f3cc0 /docs/ref
parent421622548060499881df9966b7a352bce63901cd (diff)
Fixed #31402 -- Added migrate --check option.
Command exits with non-zero status if unapplied migrations exist.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/django-admin.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index 56358b4ef8..4011da32fc 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -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``
-------------