summaryrefslogtreecommitdiff
path: root/django/db
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-06-09 16:03:04 -0400
committerTim Graham <timograham@gmail.com>2014-06-09 17:53:25 -0400
commitbc0aba7786978ec312809eae5ecb3d751608b5b7 (patch)
treed29ca4eac2b7aca5054eb71155693b9da4b310a3 /django/db
parent40bfd8561d016f6632c95d03e46a720571ad1a8a (diff)
Dropped support for SpatiaLite < 2.4.
Diffstat (limited to 'django/db')
-rw-r--r--django/db/backends/creation.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/django/db/backends/creation.py b/django/db/backends/creation.py
index 1622f0c472..0b40244924 100644
--- a/django/db/backends/creation.py
+++ b/django/db/backends/creation.py
@@ -369,6 +369,8 @@ class BaseDatabaseCreation(object):
settings.DATABASES[self.connection.alias]["NAME"] = test_database_name
self.connection.settings_dict["NAME"] = test_database_name
+ self._create_test_db_pre_migrate_sql()
+
# We report migrate messages at one level lower than that requested.
# This ensures we don't get flooded with messages during testing
# (unless you really ask to be flooded).
@@ -402,6 +404,12 @@ class BaseDatabaseCreation(object):
return test_database_name
+ def _create_test_db_pre_migrate_sql(self):
+ """
+ Hook for databases to load SQL before creating the test DB.
+ """
+ pass
+
def serialize_db_to_string(self):
"""
Serializes all data in the database into a JSON string.