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

[ticket/10327] Also change CREATE UNIQUE INDEX to use ALTER TABLE.

PHPBB3-10327
This commit is contained in:
Andreas Fischer 2011-10-14 17:18:25 +02:00
parent 1657339e6d
commit 7e18d2b861

View File

@ -2092,7 +2092,7 @@ class phpbb_db_tools
case 'mysql_40':
case 'mysql_41':
$statements[] = 'CREATE UNIQUE INDEX ' . $index_name . ' ON ' . $table_name . '(' . implode(', ', $column) . ')';
$statements[] = 'ALTER TABLE ' . $table_name . ' ADD UNIQUE INDEX (' . implode(', ', $column) . ')';
break;
case 'mssql':