File tree 2 files changed +8
-0
lines changed
django/db/backends/sqlite3
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ class DatabaseFeatures(BaseDatabaseFeatures):
38
38
# Is "ALTER TABLE ... RENAME COLUMN" supported?
39
39
can_alter_table_rename_column = Database .sqlite_version_info >= (3 , 25 , 0 )
40
40
supports_parentheses_in_compound = False
41
+ # Deferred constraint checks can be emulated on SQLite < 3.20 but not in a
42
+ # reasonably performant way.
43
+ can_defer_constraint_checks = Database .version_info >= (3 , 20 , 0 )
41
44
42
45
@cached_property
43
46
def supports_stddev (self ):
Original file line number Diff line number Diff line change @@ -265,6 +265,11 @@ Tests
265
265
* The new :setting:`ORACLE_MANAGED_FILES <TEST_ORACLE_MANAGED_FILES>` test
266
266
database setting allows using Oracle Managed Files (OMF) tablespaces.
267
267
268
+ * Deferrable database constraints are now checked at the end of each
269
+ :class:`~django.test.TestCase` test on SQLite 3.20+ as well. These checks
270
+ were previously skipped on SQLite because they required expensive table
271
+ introspection before version 3.20 introduced native support.
272
+
268
273
URLs
269
274
~~~~
270
275
You can’t perform that action at this time.
0 commit comments