mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/15047] Don't attempt to drop primary keys
This commit is contained in:
@@ -713,6 +713,7 @@ class mssql extends tools
|
|||||||
AND cols.object_id = ix.object_id
|
AND cols.object_id = ix.object_id
|
||||||
WHERE ix.object_id = object_id('{$table_name}')
|
WHERE ix.object_id = object_id('{$table_name}')
|
||||||
AND cols.name = '{$column_name}'
|
AND cols.name = '{$column_name}'
|
||||||
|
AND ix.is_primary_key = 0
|
||||||
AND ix.is_unique = " . ($unique ? '1' : '0');
|
AND ix.is_unique = " . ($unique ? '1' : '0');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user