summaryrefslogtreecommitdiff
path: root/django/db/backends/mysql/creation.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-12-30 11:39:30 -0500
committerTim Graham <timograham@gmail.com>2015-01-18 15:58:06 -0500
commit2b039d966f6e61a5ffb5ffac25aa198f9043de3d (patch)
treeeb8212ce067eec06bd5daf2c63d1509af73495ea /django/db/backends/mysql/creation.py
parent7e8cf74dc74539f40f4cea53c1e8bba82791fcb6 (diff)
downloaddjango-2b039d966f6e61a5ffb5ffac25aa198f9043de3d.tar.gz
Removed obsolete SQL generation methods.
Diffstat (limited to 'django/db/backends/mysql/creation.py')
-rw-r--r--django/db/backends/mysql/creation.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/django/db/backends/mysql/creation.py b/django/db/backends/mysql/creation.py
index 5749f9da49..aba9e8b841 100644
--- a/django/db/backends/mysql/creation.py
+++ b/django/db/backends/mysql/creation.py
@@ -11,33 +11,3 @@ class DatabaseCreation(BaseDatabaseCreation):
if test_settings['COLLATION']:
suffix.append('COLLATE %s' % test_settings['COLLATION'])
return ' '.join(suffix)
-
- def sql_for_inline_foreign_key_references(self, model, field, known_models, style):
- "All inline references are pending under MySQL"
- return [], True
-
- def sql_destroy_indexes_for_fields(self, model, fields, style):
- if len(fields) == 1 and fields[0].db_tablespace:
- tablespace_sql = self.connection.ops.tablespace_sql(fields[0].db_tablespace)
- elif model._meta.db_tablespace:
- tablespace_sql = self.connection.ops.tablespace_sql(model._meta.db_tablespace)
- else:
- tablespace_sql = ""
- if tablespace_sql:
- tablespace_sql = " " + tablespace_sql
-
- field_names = []
- qn = self.connection.ops.quote_name
- for f in fields:
- field_names.append(style.SQL_FIELD(qn(f.column)))
-
- index_name = "%s_%s" % (model._meta.db_table, self._digest([f.name for f in fields]))
-
- from ..utils import truncate_name
-
- return [
- style.SQL_KEYWORD("DROP INDEX") + " " +
- style.SQL_TABLE(qn(truncate_name(index_name, self.connection.ops.max_name_length()))) + " " +
- style.SQL_KEYWORD("ON") + " " +
- style.SQL_TABLE(qn(model._meta.db_table)) + ";",
- ]