mirror of
https://github.com/django/django.git
synced 2025-09-27 20:49:21 +00:00
Fixed #25168 -- Documented how to avoid foreign key constraint error after upgrading to 1.8.
This commit is contained in:
parent
5d0961fdfc
commit
70912e137d
1 changed files with 6 additions and 0 deletions
|
@ -1169,6 +1169,12 @@ Miscellaneous
|
||||||
automatically faked if all tables created in an initial migration already
|
automatically faked if all tables created in an initial migration already
|
||||||
existed.
|
existed.
|
||||||
|
|
||||||
|
* An app *without* migrations with a ``ForeignKey`` to an app *with* migrations
|
||||||
|
may now result in a foreign key constraint error when migrating the database
|
||||||
|
or running tests. In Django 1.7, this could fail silently and result in a
|
||||||
|
missing constraint. To resolve the error, add migrations to the app without
|
||||||
|
them.
|
||||||
|
|
||||||
.. _deprecated-features-1.8:
|
.. _deprecated-features-1.8:
|
||||||
|
|
||||||
Features deprecated in 1.8
|
Features deprecated in 1.8
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue