mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/15047] Don't attempt to drop primary keys
This commit is contained in:
parent
66b0fe3b5d
commit
b52ee87df8
1 changed files with 1 additions and 0 deletions
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue