From bd0687c5029eb9168f907fcb19d31d0086617c27 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sun, 18 Jun 2023 03:05:01 +0900 Subject: [PATCH] Fix trying to delete and recreate the same index idx_lang --- modules/module/module.class.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/module/module.class.php b/modules/module/module.class.php index 32c70fce3..10b2d0378 100644 --- a/modules/module/module.class.php +++ b/modules/module/module.class.php @@ -61,7 +61,6 @@ class Module extends ModuleObject } // Remove site_srl column from tables - if ($oDB->isIndexExists('lang', 'idx_lang')) return true; if ($oDB->getColumnInfo('lang', 'site_srl')->default_value === null) return true; if ($oDB->isIndexExists('modules', 'idx_site_mid')) return true; if ($oDB->getColumnInfo('modules', 'site_srl')->default_value === null) return true; @@ -159,10 +158,6 @@ class Module extends ModuleObject } // Set default value as 0 for site_srl columns that are no longer used. - if ($oDB->isIndexExists('lang', 'idx_lang')) - { - $oDB->dropIndex('lang', 'idx_lang'); - } if ($oDB->getColumnInfo('lang', 'site_srl')->default_value === null) { $oDB->modifyColumn('lang', 'site_srl', 'number', null, 0, true, 'lang_code');