1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-24 01:20:40 +01:00

[ticket/15047] Don't attempt to drop primary keys

This commit is contained in:
David Colón 2017-01-25 16:23:59 -05:00
parent 66b0fe3b5d
commit b52ee87df8

View File

@ -713,6 +713,7 @@ class mssql extends tools
AND cols.object_id = ix.object_id
WHERE ix.object_id = object_id('{$table_name}')
AND cols.name = '{$column_name}'
AND ix.is_primary_key = 0
AND ix.is_unique = " . ($unique ? '1' : '0');
}