1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #33960 -- Fixed migrations crash on SQLite < 3.26.

Regression in 0b95a96ee1.

Thanks Aristotelis Mikropoulos for the report.
This commit is contained in:
Mariusz Felisiak
2022-08-29 09:55:45 +02:00
committed by GitHub
parent f210de760b
commit 4483a9b12f
2 changed files with 4 additions and 1 deletions

View File

@@ -301,7 +301,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