[4.1.x] Fixed #33960 -- Fixed migrations crash on SQLite < 3.26.
Regression in0b95a96ee1
. Thanks Aristotelis Mikropoulos for the report. Backport of4483a9b12f
from main
This commit is contained in:
parent
fca055315e
commit
e98869a8a8
|
@ -289,7 +289,7 @@ class DatabaseWrapper(BaseDatabaseWrapper):
|
|||
for column_name, (
|
||||
referenced_column_name,
|
||||
referenced_table_name,
|
||||
) in relations:
|
||||
) in relations.items():
|
||||
cursor.execute(
|
||||
"""
|
||||
SELECT REFERRING.`%s`, REFERRING.`%s` FROM `%s` as REFERRING
|
||||
|
|
|
@ -52,3 +52,6 @@ Bugfixes
|
|||
|
||||
* Reallowed, following a regression in Django 4.1, creating reverse foreign key
|
||||
managers on unsaved instances (:ticket:`33952`).
|
||||
|
||||
* Fixed a regression in Django 4.1 that caused a migration crash on SQLite <
|
||||
3.20 (:ticket:`33960`).
|
||||
|
|
Loading…
Reference in New Issue