summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/app.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-06-02 13:22:25 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-07-05 13:01:19 +0200
commit183b1dbde3b5586e3bae0073f6f9c40414e7c6a6 (patch)
tree57cd4acb321775ecb75a74a2b5551eb7317bece0 /lib/private/legacy/app.php
parent15eec7b83c6198a124c2720e8ecc988605428f54 (diff)
downloadnextcloud-server-183b1dbde3b5586e3bae0073f6f9c40414e7c6a6.tar.gz
nextcloud-server-183b1dbde3b5586e3bae0073f6f9c40414e7c6a6.zip
Use migrations when there is no database.xml
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/legacy/app.php')
-rw-r--r--lib/private/legacy/app.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index 631738c726b..3ca05d85c22 100644
--- a/lib/private/legacy/app.php
+++ b/lib/private/legacy/app.php
@@ -1045,11 +1045,11 @@ 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 (file_exists($appPath . '/appinfo/database.xml')) {
+ OC_DB::updateDbFromStructure($appPath . '/appinfo/database.xml');
+ } else {
$ms = new MigrationService($appId, \OC::$server->getDatabaseConnection());
$ms->migrate();
- } else if (file_exists($appPath . '/appinfo/database.xml')) {
- OC_DB::updateDbFromStructure($appPath . '/appinfo/database.xml');
}
self::executeRepairSteps($appId, $appData['repair-steps']['post-migration']);