mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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:
parent
00febd7e0e
commit
c25dbf797d
1 changed files with 7 additions and 0 deletions
|
|
@ -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]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue