diff options
| author | Andrew Godwin <andrew@aeracode.org> | 2013-09-06 15:27:51 -0500 |
|---|---|---|
| committer | Andrew Godwin <andrew@aeracode.org> | 2013-09-06 15:28:12 -0500 |
| commit | efd1e6096ee87fe332cf989ba5479e9461d0fb3a (patch) | |
| tree | 3c80b74328fa5d9efa5dd0344a213f4ae79566cf /docs | |
| parent | 5ca290f5db3a5f735cdbdc7130c044192beb7f66 (diff) | |
Adding 'sqlmigrate' command and quote_parameter to support it.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/django-admin.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 62058e22d9..93fc4de4ab 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -993,6 +993,24 @@ Prints the CREATE INDEX SQL statements for the given app name(s). The :djadminopt:`--database` option can be used to specify the database for which to print the SQL. +sqlmigrate <appname> <migrationname> +------------------------------------ + +.. django-admin:: sqlmigrate + +Prints the SQL for the named migration. This requires an active database +connection, which it will use to resolve constraint names; this means you must +generate the SQL against a copy of the database you wish to later apply it on. + +The :djadminopt:`--database` option can be used to specify the database for +which to generate the SQL. + +.. django-admin-option:: --backwards + +By default, the SQL created is for running the migration in the forwards +direction. Pass ``--backwards`` to generate the SQL for +un-applying the migration instead. + sqlsequencereset <appname appname ...> -------------------------------------- |
