diff options
| author | Gordon Pendleton <wgordonw1@gmail.com> | 2020-03-26 05:08:58 -0400 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-03-26 20:12:39 +0100 |
| commit | d0da2820cab495c35eac10680213f927be8b91b0 (patch) | |
| tree | 0f065f06f8c84994741acc57f0814fb8677f3cc0 /docs | |
| parent | 421622548060499881df9966b7a352bce63901cd (diff) | |
Fixed #31402 -- Added migrate --check option.
Command exits with non-zero status if unapplied migrations exist.
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 ~~~~~~~~~~ |
