From 09af48c70fb5cc652ea109487015472e9ef984df Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Mon, 14 Apr 2014 13:07:02 -0400 Subject: Improve migrations/schema docs --- docs/ref/django-admin.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'docs/ref/django-admin.txt') 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 +--------------------------------------------- + +.. 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 [destination] ---------------------------------- -- cgit v1.3