diff --git a/lib/private/Updater.php b/lib/private/Updater.php index e26faf86f924a..08681eb0af760 100644 --- a/lib/private/Updater.php +++ b/lib/private/Updater.php @@ -383,6 +383,13 @@ private function upgradeAppStoreApps(array $apps, array $previousEnableStates = if ($this->installer->isUpdateAvailable($app)) { $this->emit('\OC\Updater', 'upgradeAppStoreApp', [$app]); $this->installer->updateAppstoreApp($app); + } elseif (!empty($previousEnableStates)) { + /** + * When updating a local app we still need to run updateApp + * so that repair steps and migrations are correctly executed + * Ref: https://github.com/nextcloud/server/issues/53985 + */ + \OC_App::updateApp($app); } $this->emit('\OC\Updater', 'checkAppStoreApp', [$app]);