diff options
author | Igor Wiedler <igor@wiedler.ch> | 2011-10-14 14:34:44 +0200 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2011-10-14 14:34:44 +0200 |
commit | 1657339e6d0b9a04463ce63fefa6332cab8aad14 (patch) | |
tree | d60b7efa8357ee0742a59498113ab6949bf30232 /phpBB/includes/db/db_tools.php | |
parent | 893469c6528c165f5ba48062fa662b04727bb883 (diff) | |
parent | d86fccf9c909602c37ec97577a19dc442e22206b (diff) | |
download | forums-1657339e6d0b9a04463ce63fefa6332cab8aad14.tar forums-1657339e6d0b9a04463ce63fefa6332cab8aad14.tar.gz forums-1657339e6d0b9a04463ce63fefa6332cab8aad14.tar.bz2 forums-1657339e6d0b9a04463ce63fefa6332cab8aad14.tar.xz forums-1657339e6d0b9a04463ce63fefa6332cab8aad14.zip |
Merge remote-tracking branch 'bantu/ticket/10327' into develop-olympus
* bantu/ticket/10327:
[ticket/10327] Change CREATE INDEX to ALTER TABLE table ADD INDEX for MySQL.
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 10ca6c0a1f..0d8cf7fdab 100644 --- a/phpBB/includes/db/db_tools.php +++ b/phpBB/includes/db/db_tools.php @@ -2145,7 +2145,7 @@ class phpbb_db_tools } // no break case 'mysql_41': - $statements[] = 'CREATE INDEX ' . $index_name . ' ON ' . $table_name . '(' . implode(', ', $column) . ')'; + $statements[] = 'ALTER TABLE ' . $table_name . ' ADD INDEX ' . $index_name . '(' . implode(', ', $column) . ')'; break; case 'mssql': |