Fix never cleaning up old search install

This commit is contained in:
Dennis Eichhorn 2019-08-17 22:42:19 +02:00
parent 13a85aa4da
commit ceb4d1cdb9
2 changed files with 3 additions and 3018 deletions

View File

@ -37,10 +37,11 @@ class Installer extends InstallerAbstract
*/
public static function install(DatabasePool $dbPool, InfoManager $info) : void
{
if (\file_exists(__DIR__ . '/../Search.php')) {
\unlink(__DIR__ . '/../Search.php');
if (\file_exists(__DIR__ . '/../SearchCommands.php')) {
\unlink(__DIR__ . '/../SearchCommands.php');
}
\file_put_contents(__DIR__ . '/../SearchCommands.php', '<?php return [];');
parent::install($dbPool, $info);
}

File diff suppressed because it is too large Load Diff