Skip to content

Commit df36554

Browse files
Merge pull request #54022 from nextcloud/backport/53986/stable31
[stable31] fix(update): Correctly trigger update for auto-disabled local apps
2 parents 807583c + 600cc6e commit df36554

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
@@ -385,6 +385,13 @@ private function upgradeAppStoreApps(array $apps, array $previousEnableStates =
385385
if ($this->installer->isUpdateAvailable($app)) {
386386
$this->emit('\OC\Updater', 'upgradeAppStoreApp', [$app]);
387387
$this->installer->updateAppstoreApp($app);
388+
} elseif (!empty($previousEnableStates)) {
389+
/**
390+
* When updating a local app we still need to run updateApp
391+
* so that repair steps and migrations are correctly executed
392+
* Ref: https://github.com/nextcloud/server/issues/53985
393+
*/
394+
\OC_App::updateApp($app);
388395
}
389396
$this->emit('\OC\Updater', 'checkAppStoreApp', [$app]);
390397

0 commit comments

Comments
 (0)