aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2019-05-18 02:08:30 +0700
committerrxu <rxu@mail.ru>2019-05-18 02:08:30 +0700
commit84ef70b42f1118bbc1f835773e21aa183978ad25 (patch)
tree59bacd3b32911e437f85ea3cf1d62aff1a074a31 /phpBB
parent8142257e31d3e72784e26e337afffbbc5260ec37 (diff)
downloadforums-84ef70b42f1118bbc1f835773e21aa183978ad25.tar
forums-84ef70b42f1118bbc1f835773e21aa183978ad25.tar.gz
forums-84ef70b42f1118bbc1f835773e21aa183978ad25.tar.bz2
forums-84ef70b42f1118bbc1f835773e21aa183978ad25.tar.xz
forums-84ef70b42f1118bbc1f835773e21aa183978ad25.zip
[ticket/16061] Migrator to drop unique indexes when needed
PHPBB3-16061
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/phpbb/db/tools/tools.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/db/tools/tools.php b/phpBB/phpbb/db/tools/tools.php
index d21d34b8a9..c3352a1f66 100644
--- a/phpBB/phpbb/db/tools/tools.php
+++ b/phpBB/phpbb/db/tools/tools.php
@@ -576,7 +576,7 @@ class tools implements tools_interface
{
foreach ($indexes as $index_name)
{
- if (!$this->sql_index_exists($table, $index_name))
+ if (!$this->sql_index_exists($table, $index_name) && !$this->sql_unique_index_exists($table, $index_name))
{
continue;
}