diff options
author | Andreas Fischer <bantu@phpbb.com> | 2012-04-10 00:53:27 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2012-04-10 00:53:27 +0200 |
commit | ef8160e8a2a1dbb51cd2603eefcd9309d2daece8 (patch) | |
tree | 7d0f13142f4183afcc842de29dcdadef7388916b /phpBB/includes/db/db_tools.php | |
parent | 41ef41ac63af83f04d0e82cd1891c12060e90227 (diff) | |
download | forums-ef8160e8a2a1dbb51cd2603eefcd9309d2daece8.tar forums-ef8160e8a2a1dbb51cd2603eefcd9309d2daece8.tar.gz forums-ef8160e8a2a1dbb51cd2603eefcd9309d2daece8.tar.bz2 forums-ef8160e8a2a1dbb51cd2603eefcd9309d2daece8.tar.xz forums-ef8160e8a2a1dbb51cd2603eefcd9309d2daece8.zip |
[ticket/10774] Correctly specify index name when creating unique index on MySQL.
PHPBB3-10774
Diffstat (limited to 'phpBB/includes/db/db_tools.php')
-rw-r--r-- | phpBB/includes/db/db_tools.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/db/db_tools.php b/phpBB/includes/db/db_tools.php index 2cba11133a..c6dd23e6bd 100644 --- a/phpBB/includes/db/db_tools.php +++ b/phpBB/includes/db/db_tools.php @@ -2115,7 +2115,7 @@ class phpbb_db_tools case 'mysql_40': case 'mysql_41': - $statements[] = 'ALTER TABLE ' . $table_name . ' ADD UNIQUE INDEX (' . implode(', ', $column) . ')'; + $statements[] = 'ALTER TABLE ' . $table_name . ' ADD UNIQUE INDEX ' . $index_name . '(' . implode(', ', $column) . ')'; break; case 'mssql': |