mirror of https://github.com/django/django.git
Renamed SQLite3 references to to SQLite.
The version suffix isn't part of the product name.
This commit is contained in:
parent
e671337e8b
commit
20f6f9eaa1
|
@ -300,7 +300,7 @@ class BaseDatabaseSchemaEditor:
|
||||||
# Prevent using [] as params, in the case a literal '%' is used in the definition
|
# Prevent using [] as params, in the case a literal '%' is used in the definition
|
||||||
self.execute(sql, params or None)
|
self.execute(sql, params or None)
|
||||||
|
|
||||||
# Add any field index and index_together's (deferred as SQLite3 _remake_table needs it)
|
# Add any field index and index_together's (deferred as SQLite _remake_table needs it)
|
||||||
self.deferred_sql.extend(self._model_indexes_sql(model))
|
self.deferred_sql.extend(self._model_indexes_sql(model))
|
||||||
|
|
||||||
# Make M2M tables
|
# Make M2M tables
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
"""
|
"""
|
||||||
SQLite3 backend for the sqlite3 module in the standard library.
|
SQLite backend for the sqlite3 module in the standard library.
|
||||||
"""
|
"""
|
||||||
import datetime
|
import datetime
|
||||||
import decimal
|
import decimal
|
||||||
|
|
|
@ -24,7 +24,7 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
|
||||||
'SQLite schema editor cannot be used while foreign key '
|
'SQLite schema editor cannot be used while foreign key '
|
||||||
'constraint checks are enabled. Make sure to disable them '
|
'constraint checks are enabled. Make sure to disable them '
|
||||||
'before entering a transaction.atomic() context because '
|
'before entering a transaction.atomic() context because '
|
||||||
'SQLite3 does not support disabling them in the middle of '
|
'SQLite does not support disabling them in the middle of '
|
||||||
'a multi-statement transaction.'
|
'a multi-statement transaction.'
|
||||||
)
|
)
|
||||||
return super().__enter__()
|
return super().__enter__()
|
||||||
|
|
|
@ -91,7 +91,7 @@ class SchemaTests(TransactionTestCase):
|
||||||
'SQLite schema editor cannot be used while foreign key '
|
'SQLite schema editor cannot be used while foreign key '
|
||||||
'constraint checks are enabled. Make sure to disable them '
|
'constraint checks are enabled. Make sure to disable them '
|
||||||
'before entering a transaction.atomic() context because '
|
'before entering a transaction.atomic() context because '
|
||||||
'SQLite3 does not support disabling them in the middle of '
|
'SQLite does not support disabling them in the middle of '
|
||||||
'a multi-statement transaction.'
|
'a multi-statement transaction.'
|
||||||
)
|
)
|
||||||
with self.assertRaisesMessage(NotSupportedError, msg):
|
with self.assertRaisesMessage(NotSupportedError, msg):
|
||||||
|
@ -100,7 +100,7 @@ class SchemaTests(TransactionTestCase):
|
||||||
|
|
||||||
def test_constraint_checks_disabled_atomic_allowed(self):
|
def test_constraint_checks_disabled_atomic_allowed(self):
|
||||||
"""
|
"""
|
||||||
SQLite3 schema editor is usable within an outer transaction as long as
|
SQLite schema editor is usable within an outer transaction as long as
|
||||||
foreign key constraints checks are disabled beforehand.
|
foreign key constraints checks are disabled beforehand.
|
||||||
"""
|
"""
|
||||||
def constraint_checks_enabled():
|
def constraint_checks_enabled():
|
||||||
|
|
Loading…
Reference in New Issue