diff options
author | Simon Charette <charette.s@gmail.com> | 2018-12-07 19:55:47 -0500 |
---|---|---|
committer | Simon Charette <charette.s@gmail.com> | 2018-12-17 10:01:35 -0500 |
commit | 7cf9d15cf80df4ed9a1179bc457ff2d03b5e5cb3 (patch) | |
tree | 986b4ebe928047d827867cc22e7a70f141fa828e /docs/releases/2.1.5.txt | |
parent | 8d741bd88fa6bd14327f6fa791017d0773b41cf2 (diff) | |
download | django-7cf9d15cf80df4ed9a1179bc457ff2d03b5e5cb3.tar.gz |
[2.1.x] Fixed #30023 -- Prevented SQLite schema alterations while foreign key checks are enabled.
Prior to this change foreign key constraint references could be left pointing
at tables dropped during operations simulating unsupported table alterations
because of an unexpected failure to disable foreign key constraint checks.
SQLite3 does not allow disabling such checks while in a transaction so they
must be disabled beforehand.
Thanks ezaquarii for the report and Carlton and Tim for the review.
Backport of 315357ad25a6590e7f4564ec2e56a22132b09001 from master.
Diffstat (limited to 'docs/releases/2.1.5.txt')
-rw-r--r-- | docs/releases/2.1.5.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/releases/2.1.5.txt b/docs/releases/2.1.5.txt index 9f1f3a4e8a..f5306192a4 100644 --- a/docs/releases/2.1.5.txt +++ b/docs/releases/2.1.5.txt @@ -15,3 +15,6 @@ Bugfixes * Fixed a schema corruption issue on SQLite 3.26+. You might have to drop and rebuild your SQLite database if you applied a migration while using an older version of Django with SQLite 3.26 or later (:ticket:`29182`). + +* Prevented SQLite schema alterations while foreign key checks are enabled to + avoid the possibility of schema corruption (:ticket:`30023`). |