Skip to content

Commit

Permalink
Alter oc_jobs before enabing market app
Browse files Browse the repository at this point in the history
  • Loading branch information
VicDeo committed Sep 4, 2018
1 parent 172f3cd commit 960ca7c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/private/Repair/Apps.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

namespace OC\Repair;

use OC\DB\MigrationService;
use OC\RepairException;
use OC_App;
use OCP\App\AppAlreadyInstalledException;
Expand Down Expand Up @@ -326,6 +327,10 @@ private function fixMarketAppState(IOutput $output) {
// Then we need to enable the market app to support app updates / downloads during upgrade
$output->info('Enabling market app to assist with update');
try {
// Prepare oc_jobs for older ownCloud version fixes https://github.com/owncloud/update-testing/issues/5
$ms = new MigrationService('core', \OC::$server->getDatabaseConnection(), $output);
$ms->executeStep('20170213215145');

$this->appManager->enableApp('market');
return true;
} catch (\Exception $ex) {
Expand Down

0 comments on commit 960ca7c

Please sign in to comment.