diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/django-admin.txt | 7 | ||||
| -rw-r--r-- | docs/releases/3.1.txt | 3 |
2 files changed, 10 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`` ------------- diff --git a/docs/releases/3.1.txt b/docs/releases/3.1.txt index 6cbdac4a1e..ecd70feb2e 100644 --- a/docs/releases/3.1.txt +++ b/docs/releases/3.1.txt @@ -300,6 +300,9 @@ Management Commands enabled for all configured :setting:`DATABASES` by passing the ``database`` tag to the command. +* The new :option:`migrate --check` option makes the command exit with a + non-zero status when unapplied migrations are detected. + Migrations ~~~~~~~~~~ |
