diff options
author | Joas Schilling <coding@schilljs.com> | 2020-11-10 21:26:41 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-11-11 11:40:51 +0100 |
commit | 7f45f907893368ef5cc1b3d87c2151d4b8d304ce (patch) | |
tree | 84c845dc86aa9d407322fe90652025884096f7dc /lib | |
parent | 61496d3482bd4797c54a0655834916b1e0d667b1 (diff) | |
download | nextcloud-server-7f45f907893368ef5cc1b3d87c2151d4b8d304ce.tar.gz nextcloud-server-7f45f907893368ef5cc1b3d87c2151d4b8d304ce.zip |
Only update the schema when we install anyway
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Installer.php | 4 | ||||
-rw-r--r-- | lib/private/Setup/AbstractDatabase.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Installer.php b/lib/private/Installer.php index 9388711697a..96f14933a76 100644 --- a/lib/private/Installer.php +++ b/lib/private/Installer.php @@ -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 diff --git a/lib/private/Setup/AbstractDatabase.php b/lib/private/Setup/AbstractDatabase.php index 98d6b84ab9c..8a9aed09f1b 100644 --- a/lib/private/Setup/AbstractDatabase.php +++ b/lib/private/Setup/AbstractDatabase.php @@ -150,6 +150,6 @@ abstract class AbstractDatabase { return; } $ms = new MigrationService('core', \OC::$server->getDatabaseConnection()); - $ms->migrate(); + $ms->migrate('latest', true); } } |