diff options
author | Joas Schilling <coding@schilljs.com> | 2025-07-17 12:18:17 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2025-07-17 12:18:17 +0200 |
commit | 0ace3959819ef6abf7ee1f9aadfe10954dd4bdd7 (patch) | |
tree | d489ac9e2e62faa038bf23f583f148187746988d | |
parent | 90c2bba6376e3ce1252d454891bda65047ccb31d (diff) | |
download | nextcloud-server-bugfix/53985/trigger-update-for-autodisabled-local-apps.tar.gz nextcloud-server-bugfix/53985/trigger-update-for-autodisabled-local-apps.zip |
fix(update): Correctly trigger update for auto-disabled local appsbugfix/53985/trigger-update-for-autodisabled-local-apps
When updating a local app we still need to run updateApp
so that repair steps and migrations are correctly executed
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/private/Updater.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php index 6495bad2da2..9cd33863612 100644 --- a/lib/private/Updater.php +++ b/lib/private/Updater.php @@ -385,6 +385,13 @@ class Updater extends BasicEmitter { 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]); |