From 84ef70b42f1118bbc1f835773e21aa183978ad25 Mon Sep 17 00:00:00 2001 From: rxu Date: Sat, 18 May 2019 02:08:30 +0700 Subject: [ticket/16061] Migrator to drop unique indexes when needed PHPBB3-16061 --- phpBB/phpbb/db/tools/tools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/phpbb') 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; } -- cgit v1.2.1