Only update the schema when we install anyway

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-11-10 21:26:41 +01:00
parent 61496d3482
commit 7f45f90789
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
2 changed files with 3 additions and 3 deletions

View File

@ -154,7 +154,7 @@ class Installer {
}
} else {
$ms = new \OC\DB\MigrationService($info['id'], \OC::$server->getDatabaseConnection());
$ms->migrate();
$ms->migrate('latest', true);
}
if ($previousVersion) {
OC_App::executeRepairSteps($appId, $info['repair-steps']['post-migration']);
@ -589,7 +589,7 @@ class Installer {
}
} else {
$ms = new \OC\DB\MigrationService($app, \OC::$server->getDatabaseConnection());
$ms->migrate();
$ms->migrate('latest', true);
}
//run appinfo/install.php

View File

@ -150,6 +150,6 @@ abstract class AbstractDatabase {
return;
}
$ms = new MigrationService('core', \OC::$server->getDatabaseConnection());
$ms->migrate();
$ms->migrate('latest', true);
}
}