diff options
| author | Andrew Godwin <andrew@aeracode.org> | 2014-04-14 13:07:02 -0400 |
|---|---|---|
| committer | Andrew Godwin <andrew@aeracode.org> | 2014-04-14 18:09:48 -0400 |
| commit | a195ec847e44e8ec6f688dfed55b37eb8ec144cf (patch) | |
| tree | c7fa14af4e783d29d9a73432122763abd3f56d22 /docs/ref/django-admin.txt | |
| parent | f004374f8ff0ad30a694a0f4b74ba24ca9cf3227 (diff) | |
[1.7.x] Improve migrations/schema docs
Diffstat (limited to 'docs/ref/django-admin.txt')
| -rw-r--r-- | docs/ref/django-admin.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 86e1587934..a5525fe632 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -1106,6 +1106,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] ---------------------------------- |
