summaryrefslogtreecommitdiff
path: root/docs/ref/django-admin.txt
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2014-04-14 13:07:02 -0400
committerAndrew Godwin <andrew@aeracode.org>2014-04-14 13:07:02 -0400
commit09af48c70fb5cc652ea109487015472e9ef984df (patch)
tree3d3cea5992d363f77dc926875640dcf5738ee90b /docs/ref/django-admin.txt
parent63d0cbab042c981d6ef63a3193fb1fa0027db0fd (diff)
Improve migrations/schema docs
Diffstat (limited to 'docs/ref/django-admin.txt')
-rw-r--r--docs/ref/django-admin.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index 7a4a5211e6..cd56332204 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -1086,6 +1086,25 @@ of sync with its automatically incremented field data.
The :djadminopt:`--database` option can be used to specify the database for
which to print the SQL.
+squashmigrations <app_label> <migration_name>
+---------------------------------------------
+
+.. django-admin:: squashmigrations
+
+Squashes the migrations for ``app_label`` up to and including ``migration_name``
+down into fewer migrations, if possible. The resulting squashed migrations
+can live alongside the unsquashed ones safely. For more information,
+please read :ref:`migration-squashing`.
+
+.. django-admin-option:: --no-optimize
+
+By default, Django will try to optimize the operations in your migrations
+to reduce the size of the resulting file. Pass ``--no-optimize`` if this
+process is failing for you or creating incorrect migrations, though please
+also file a Django bug report about the behaviour, as optimization is meant
+to be safe.
+
+
startapp <app_label> [destination]
----------------------------------