diff options
Diffstat (limited to 'lib/Migration/NextantUpgrade.php')
-rw-r--r-- | lib/Migration/NextantUpgrade.php | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/lib/Migration/NextantUpgrade.php b/lib/Migration/NextantUpgrade.php deleted file mode 100644 index 44bc2e3..0000000 --- a/lib/Migration/NextantUpgrade.php +++ /dev/null @@ -1,69 +0,0 @@ -<?php - -/** - * Nextcloud - nextant - * - * This file is licensed under the Affero General Public License version 3 or - * later. See the COPYING file. - * - * @author Maxence Lange <maxence@pontapreta.net> - * @copyright Maxence Lange 2016 - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ -namespace OCA\Nextant\Migration; - -use OCP\Migration\IOutput; -use OCP\Migration\IRepairStep; - -class NextantUpgrade implements IRepairStep -{ - - private $solrService; - - private $solrAdmin; - - private $configService; - - public function __construct($configService, $solrService, $solrAdmin) - { - $this->solrService = $solrService; - $this->solrAdmin = $solrAdmin; - $this->configService = $configService; - } - - /** - * Returns the step's name - * - * @return string - * @since 9.1.0 - */ - public function getName() - { - return 'Check and update Solr schema'; - } - - /** - */ - public function run(IOutput $output) - { - $this->solrAdmin->checkSchema(true, $ierror); - $this->solrAdmin->checkSchema(true, $ierror); - $this->solrAdmin->checkSchema(true, $ierror); - $this->configService->removeOldConfig(); - // $this->configService->stopUpdate(); - } -}
\ No newline at end of file |