From 29b4a3f513f412fb4a987b777b61b596c09d217e Mon Sep 17 00:00:00 2001 From: Andriy Sokolovskiy Date: Mon, 30 Mar 2015 23:00:07 +0300 Subject: [PATCH] Removed duplicate attribute in MySQL DatabaseSchemaEditor. --- django/db/backends/mysql/schema.py | 2 -- 1 file changed, 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;'