diff options
| author | Simon Charette <charette.s@gmail.com> | 2018-12-11 03:06:24 -0500 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2018-12-17 10:44:05 +0100 |
| commit | 894cb13779e6d092974c873bd2cf1452554d2e06 (patch) | |
| tree | afebfdae496f68695b36db17af90f0bbbe902f3d /django/db/backends/sqlite3/features.py | |
| parent | 7289874adceec46b5367ec3157cdd10c711253a0 (diff) | |
Refs #29182 -- Stopped relying on legacy alter table semantic on SQLite 3.26+.
SQLite 3.26 changed the behavior of table and column renaming operations to
repoint foreign key references even if foreign key checks are disabled.
This makes the workarounds in place to simulate this behavior unnecessary on
SQLite 3.26+. Refs #30033.
Diffstat (limited to 'django/db/backends/sqlite3/features.py')
| -rw-r--r-- | django/db/backends/sqlite3/features.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/sqlite3/features.py b/django/db/backends/sqlite3/features.py index aa24024f91..c61b0609d5 100644 --- a/django/db/backends/sqlite3/features.py +++ b/django/db/backends/sqlite3/features.py @@ -25,7 +25,7 @@ class DatabaseFeatures(BaseDatabaseFeatures): supports_transactions = True atomic_transactions = False can_rollback_ddl = True - supports_atomic_references_rename = False + supports_atomic_references_rename = Database.version_info >= (3, 26, 0) supports_paramstyle_pyformat = False supports_sequence_reset = False can_clone_databases = True |
