Skip to content

Commit 6425d83

Browse files
Merge pull request #54021 from nextcloud/backport/53986/stable30
[stable30] fix(update): Correctly trigger update for auto-disabled local apps
2 parents e03d6ad + c25dbf7 commit 6425d83

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/private/Updater.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,13 @@ private function upgradeAppStoreApps(array $apps, array $previousEnableStates =
383383
if ($this->installer->isUpdateAvailable($app)) {
384384
$this->emit('\OC\Updater', 'upgradeAppStoreApp', [$app]);
385385
$this->installer->updateAppstoreApp($app);
386+
} elseif (!empty($previousEnableStates)) {
387+
/**
388+
* When updating a local app we still need to run updateApp
389+
* so that repair steps and migrations are correctly executed
390+
* Ref: https://github.com/nextcloud/server/issues/53985
391+
*/
392+
\OC_App::updateApp($app);
386393
}
387394
$this->emit('\OC\Updater', 'checkAppStoreApp', [$app]);
388395

0 commit comments

Comments
 (0)