Only update the schema when we install anyway
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
61496d3482
commit
7f45f90789
|
@ -154,7 +154,7 @@ class Installer {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$ms = new \OC\DB\MigrationService($info['id'], \OC::$server->getDatabaseConnection());
|
$ms = new \OC\DB\MigrationService($info['id'], \OC::$server->getDatabaseConnection());
|
||||||
$ms->migrate();
|
$ms->migrate('latest', true);
|
||||||
}
|
}
|
||||||
if ($previousVersion) {
|
if ($previousVersion) {
|
||||||
OC_App::executeRepairSteps($appId, $info['repair-steps']['post-migration']);
|
OC_App::executeRepairSteps($appId, $info['repair-steps']['post-migration']);
|
||||||
|
@ -589,7 +589,7 @@ class Installer {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$ms = new \OC\DB\MigrationService($app, \OC::$server->getDatabaseConnection());
|
$ms = new \OC\DB\MigrationService($app, \OC::$server->getDatabaseConnection());
|
||||||
$ms->migrate();
|
$ms->migrate('latest', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
//run appinfo/install.php
|
//run appinfo/install.php
|
||||||
|
|
|
@ -150,6 +150,6 @@ abstract class AbstractDatabase {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$ms = new MigrationService('core', \OC::$server->getDatabaseConnection());
|
$ms = new MigrationService('core', \OC::$server->getDatabaseConnection());
|
||||||
$ms->migrate();
|
$ms->migrate('latest', true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue