summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndriy Sokolovskiy <me@asokolovskiy.com>2015-03-30 23:00:07 +0300
committerTim Graham <timograham@gmail.com>2015-03-30 19:24:06 -0400
commit121c5f7d5b85dca61c63306fe87b34412b9faba6 (patch)
treec2fb87f494d140301490cf7717c926e02085fc7c
parent2bddc74b42dd427711385e8a3e0b72c42f2d7b36 (diff)
[1.8.x] Removed duplicate attribute in MySQL DatabaseSchemaEditor.
Backport of 29b4a3f513f412fb4a987b777b61b596c09d217e from master
-rw-r--r--django/db/backends/mysql/schema.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/django/db/backends/mysql/schema.py b/django/db/backends/mysql/schema.py
index 4512e99d7e..7f3a2d357b 100644
--- a/django/db/backends/mysql/schema.py
+++ b/django/db/backends/mysql/schema.py
@@ -21,8 +21,6 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
sql_delete_index = "DROP INDEX %(name)s ON %(table)s"
- sql_delete_pk = "ALTER TABLE %(table)s DROP PRIMARY KEY"
-
alter_string_set_null = 'MODIFY %(column)s %(type)s NULL;'
alter_string_drop_null = 'MODIFY %(column)s %(type)s NOT NULL;'