From 8e01769e38ab684406021468679739c8f0e00741 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 23 Dec 2020 12:25:37 +0100 Subject: [PATCH] Remove search table engine check from SystemCheckPage As of c36b70769fd366597d463064b29afc87fb2bcefe both engines are supported just fine. This is related to #3404. --- .../files/acp/templates/systemCheck.tpl | 12 ------- .../lib/acp/page/SystemCheckPage.class.php | 32 +------------------ wcfsetup/install/lang/de.xml | 3 -- wcfsetup/install/lang/en.xml | 3 -- 4 files changed, 1 insertion(+), 49 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/systemCheck.tpl b/wcfsetup/install/files/acp/templates/systemCheck.tpl index 4a61d86424..7555ef466d 100644 --- a/wcfsetup/install/files/acp/templates/systemCheck.tpl +++ b/wcfsetup/install/files/acp/templates/systemCheck.tpl @@ -160,18 +160,6 @@ {lang}wcf.acp.systemCheck.mysql.foreignKeys.description{/lang} - - -
{lang}wcf.acp.systemCheck.mysql.searchEngine{/lang}
-
- {if $results[mysql][searchEngine][result]} - {@$statusOk} {lang}wcf.acp.systemCheck.pass{/lang} - {else} - {@$statusInsufficient} {lang}wcf.acp.systemCheck.mysql.searchEngine.incorrect{/lang} - {/if} - {lang}wcf.acp.systemCheck.mysql.searchEngine.description{/lang} -
-
diff --git a/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php b/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php index 45601145bd..b34111b34e 100644 --- a/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php @@ -1,11 +1,9 @@ false, 'version' => '0.0.0', 'foreignKeys' => false, - 'searchEngine' => [ - 'result' => false, - 'incorrectTables' => [], - ], ], 'php' => [ 'gd' => [ @@ -257,31 +251,7 @@ class SystemCheckPage extends AbstractPage { $this->results['mysql']['foreignKeys'] = $statement->fetchSingleColumn() == $expectedForeignKeyCount; - // check search engine tables - $objectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.searchableObjectType'); - $tableNames = []; - foreach ($objectTypes as $objectType) { - $tableNames[] = SearchIndexManager::getTableName($objectType->objectType); - } - $conditionBuilder = new PreparedStatementConditionBuilder(true); - $conditionBuilder->add('TABLE_NAME IN (?)', [$tableNames]); - $conditionBuilder->add('TABLE_SCHEMA = ?', [WCF::getDB()->getDatabaseName()]); - - $sql = "SELECT TABLE_NAME, ENGINE - FROM INFORMATION_SCHEMA.TABLES - ". $conditionBuilder; - $statement = WCF::getDB()->prepareStatement($sql); - $statement->execute($conditionBuilder->getParameters()); - - while ($row = $statement->fetchArray()) { - if ($row['ENGINE'] !== 'MyISAM') { - $this->results['mysql']['searchEngine']['incorrectTables'][$row['TABLE_NAME']] = $row['ENGINE']; - } - } - - $this->results['mysql']['searchEngine']['result'] = empty($this->results['mysql']['searchEngine']['incorrectTables']); - - if ($this->results['mysql']['result'] && $this->results['mysql']['innodb'] && $this->results['mysql']['foreignKeys'] && $this->results['mysql']['searchEngine']['result']) { + if ($this->results['mysql']['result'] && $this->results['mysql']['innodb'] && $this->results['mysql']['foreignKeys']) { $this->results['status']['mysql'] = true; } } diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 21aefbcb40..86b7a5b9c7 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -2749,9 +2749,6 @@ Kein Abschnitt darf leer sein und alle Abschnitten dürfen nur folgende Zeichen - - - MyISAM): {implode from=$results[mysql][searchEngine][incorrectTables] key=tableName item=engine glue=", "}{$tableName} ({$engine}){/implode}.]]> diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index b69e63189d..ff01b51105 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -2677,9 +2677,6 @@ If you have already bought the licenses for the listed apps, th - - - MyISAM): {implode from=$results[mysql][searchEngine][incorrectTables] key=tableName item=engine glue=", "}{$tableName} ({$engine}){/implode}.]]> -- 2.20.1