From f287bec5833d75750fa6368bc2802741b7924533 Mon Sep 17 00:00:00 2001 From: Markus Holtermann Date: Thu, 12 Feb 2015 12:48:28 +0100 Subject: Fixed #24184 -- Prevented automatic soft-apply of migrations Previously Django only checked for the table name in CreateModel operations in initial migrations and faked the migration automatically. This led to various errors and unexpected behavior. The newly introduced --fake-initial flag to the migrate command must be passed to get the same behavior again. With this change Django will bail out in with a "duplicate relation / table" error instead. Thanks Carl Meyer and Tim Graham for the documentation update, report and review. --- docs/releases/1.8.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/releases') diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt index 4f77f063a3..4c7076a51e 100644 --- a/docs/releases/1.8.txt +++ b/docs/releases/1.8.txt @@ -1135,6 +1135,11 @@ Miscellaneous has been removed by a migration and replaced by a property. That means it's not possible to query or filter a ``ContentType`` by this field any longer. +* :djadmin:`migrate` now accepts the :djadminopt:`--fake-initial` option to + allow faking initial migrations. In 1.7 initial migrations were always + automatically faked if all tables created in an initial migration already + existed. + .. _deprecated-features-1.8: Features deprecated in 1.8 -- cgit v1.3