summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJarek Glowacki <jarekwg@outlook.com>2016-01-03 23:21:50 +1100
committerTim Graham <timograham@gmail.com>2016-01-04 10:38:43 -0500
commit6e5d77dc052cbd0dbb92dd9142d408e011be65f8 (patch)
treeaf458215079269f95c19cd2aadef2c0a45e86fa9 /docs
parentd86870cb6c38dc82af25ce891303b9cd66328dd4 (diff)
[1.9.x] Added missing step to transitioning squashed migrations.
Backport of d8b651a544696e586bcc941335420ff9b7bf4fb5 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/migrations.txt11
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/topics/migrations.txt b/docs/topics/migrations.txt
index a202676aea..c197c5556f 100644
--- a/docs/topics/migrations.txt
+++ b/docs/topics/migrations.txt
@@ -626,12 +626,13 @@ migrations it replaces and distribute this change to all running instances
of your application, making sure that they run ``migrate`` to store the change
in their database.
-After this has been done, you must then transition the squashed migration to
-a normal initial migration, by:
+You must then transition the squashed migration to a normal migration by:
-- Deleting all the migration files it replaces
-- Removing the ``replaces`` argument in the ``Migration`` class of the
- squashed migration (this is how Django tells that it is a squashed migration)
+- Deleting all the migration files it replaces.
+- Updating all migrations that depend on the deleted migrations to depend on
+ the squashed migration instead.
+- Removing the ``replaces`` attribute in the ``Migration`` class of the
+ squashed migration (this is how Django tells that it is a squashed migration).
.. note::
Once you've squashed a migration, you should not then re-squash that squashed