瀏覽代碼

Removed duplicate attribute in MySQL DatabaseSchemaEditor.

Andriy Sokolovskiy 10 年之前
父節點
當前提交
29b4a3f513
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      django/db/backends/mysql/schema.py

+ 0 - 2
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;'