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>
This commit is contained in:
Joas Schilling 2025-07-17 12:18:17 +02:00 committed by backportbot[bot]
parent 00febd7e0e
commit c25dbf797d

View file

@ -383,6 +383,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]);