[3.0.x] Refs #30597 -- Added a warning about dependent apps when unapplying migrations.

Backport of abba563c86 from master
This commit is contained in:
David Vaz 2019-09-27 09:41:49 -07:00 committed by Mariusz Felisiak
parent 0dc39ca867
commit 5d40de0856
1 changed files with 6 additions and 0 deletions

View File

@ -813,6 +813,12 @@ The behavior of this command changes depending on the arguments provided:
migrated past the named migration. Use the name ``zero`` to unapply all
migrations for an app.
.. warning::
When unapplying migrations, all dependent migrations will also be
unapplied, regardless of ``<app_label>``. You can use ``--plan`` to check
which migrations will be unapplied.
.. django-admin-option:: --database DATABASE
Specifies the database to migrate. Defaults to ``default``.