Unverified Commit 027979f4 authored by Vincent Petry's avatar Vincent Petry
Browse files

Fix "use-migrations" check in updateApp

A bool is not always a bool...
parent e1699e84
......@@ -1223,7 +1223,7 @@ class OC_App {
}
$appData = self::getAppInfo($appId);
self::executeRepairSteps($appId, $appData['repair-steps']['pre-migration']);
if (isset($appData['use-migrations']) && $appData['use-migrations'] === true) {
if (isset($appData['use-migrations']) && $appData['use-migrations'] === 'true') {
$ms = new \OC\DB\MigrationService();
$mc = $ms->buildConfiguration($appId, \OC::$server->getDatabaseConnection());
$ms->migrate($mc, true);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment