diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-11-26 14:48:41 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-11-26 14:48:41 +0100 |
commit | 7dd39a91ee30a96f4c7fe3dd0646131191679fbc (patch) | |
tree | cc5b949e6f79c786d634a617830a59508bd27b1e /lib | |
parent | 54e3beba165739c480730f797e2b386b12a92713 (diff) | |
download | nextcloud-server-7dd39a91ee30a96f4c7fe3dd0646131191679fbc.tar.gz nextcloud-server-7dd39a91ee30a96f4c7fe3dd0646131191679fbc.zip |
Remove dead method \OC\Updater::checkAppUpgrade
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Updater.php | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php index 4b5d02aeb64..437ba38362c 100644 --- a/lib/private/Updater.php +++ b/lib/private/Updater.php @@ -300,47 +300,6 @@ class Updater extends BasicEmitter { } /** - * @param string $version the oc version to check app compatibility with - */ - protected function checkAppUpgrade($version) { - $apps = \OC_App::getEnabledApps(); - $this->emit('\OC\Updater', 'appUpgradeCheckBefore'); - - $appManager = \OC::$server->getAppManager(); - foreach ($apps as $appId) { - $info = \OC_App::getAppInfo($appId); - $compatible = \OC_App::isAppCompatible($version, $info); - $isShipped = $appManager->isShipped($appId); - - if ($compatible && $isShipped && \OC_App::shouldUpgrade($appId)) { - /** - * FIXME: The preupdate check is performed before the database migration, otherwise database changes - * are not possible anymore within it. - Consider this when touching the code. - * @link https://github.com/owncloud/core/issues/10980 - * @see \OC_App::updateApp - */ - if (file_exists(\OC_App::getAppPath($appId) . '/appinfo/preupdate.php')) { - $this->includePreUpdate($appId); - } - if (file_exists(\OC_App::getAppPath($appId) . '/appinfo/database.xml')) { - $this->emit('\OC\Updater', 'appSimulateUpdate', [$appId]); - \OC_DB::simulateUpdateDbFromStructure(\OC_App::getAppPath($appId) . '/appinfo/database.xml'); - } - } - } - - $this->emit('\OC\Updater', 'appUpgradeCheck'); - } - - /** - * Includes the pre-update file. Done here to prevent namespace mixups. - * @param string $appId - */ - private function includePreUpdate($appId) { - include \OC_App::getAppPath($appId) . '/appinfo/preupdate.php'; - } - - /** * upgrades all apps within a major ownCloud upgrade. Also loads "priority" * (types authentication, filesystem, logging, in that order) afterwards. * |