瀏覽代碼

Refs #30597 -- Added a warning about dependent apps when unapplying migrations.

David Vaz 5 年之前
父節點
當前提交
abba563c86
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      docs/ref/django-admin.txt

+ 6 - 0
docs/ref/django-admin.txt

@@ -805,6 +805,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``.