Merge pull request #53986 from nextcloud/bugfix/53985/trigger-update-for-autodisabled-local-apps

fix(update): Correctly trigger update for auto-disabled local apps
pull/54011/head
Joas Schilling 2025-07-21 14:09:22 +07:00 committed by GitHub
commit d9e0216b2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

@ -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]);