fix(update): Correctly trigger update for auto-disabled 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>
pull/53986/head
Joas Schilling 2025-07-17 12:18:17 +07:00
parent 90c2bba637
commit 0ace395981
No known key found for this signature in database
GPG Key ID: F72FA5B49FFA96B0
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]);