summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2014-07-06 00:30:05 -0700
committerAndrew Godwin <andrew@aeracode.org>2014-07-06 00:30:18 -0700
commit32fefc6f70c529ee5f13b2d82a26333fb7a4ed14 (patch)
treed959f77ec8721d04b7265e9c36bf9dfcee3c5116 /docs/ref
parent67f9f385aa36c0337d0e961d3a06e9d5f44d678e (diff)
Document --fake and --list on migrate command
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/django-admin.txt24
1 files changed, 23 insertions, 1 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index f47c1967cd..e67276613a 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -694,7 +694,29 @@ The behavior of this command changes depending on the arguments provided:
* ``<app_label> <migrationname>``: Brings the database schema to a state where it
would have just run the given migration, but no further - this may involve
unapplying migrations if you have previously migrated past the named
- migration. Use the name `zero` to unapply all migrations for an app.
+ migration. Use the name ``zero`` to unapply all migrations for an app.
+
+.. django-admin-option:: --fake
+
+The ``--fake`` option tells Django to mark the migrations as having been
+applied or unapplied, but without actually running the SQL to change your
+database schema.
+
+This is intended for advanced users to manipulate the
+current migration state directly if they're manually applying changes;
+be warned that using ``--fake`` runs the risk of putting the migration state
+table into a state where manual recovery will be needed to make migrations
+run correctly.
+
+.. django-admin-option:: --list
+
+The ``--list`` option will list all of the apps Django knows about, the
+migrations available for each app and if they are applied or not (marked by
+an ``[X]`` next to the migration name).
+
+Apps without migrations are also included in the list, but will have
+``(no migrations)`` printed under them.
+
runfcgi [options]
-----------------