diff options
author | Joas Schilling <coding@schilljs.com> | 2017-05-11 14:04:53 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-05-18 10:48:54 +0200 |
commit | c6a5a25b4833065a040fcbeaf0f85e21254ce6c8 (patch) | |
tree | cf384012a66414c7fe7bb097d69329fea19c7a21 /lib/private/Repair.php | |
parent | d41fd7471c05ccaff14d13ed1a8d721dc363b8b0 (diff) | |
download | nextcloud-server-c6a5a25b4833065a040fcbeaf0f85e21254ce6c8.tar.gz nextcloud-server-c6a5a25b4833065a040fcbeaf0f85e21254ce6c8.zip |
Add a migration step to save the data from the accounts table before migrating
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Repair.php')
-rw-r--r-- | lib/private/Repair.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Repair.php b/lib/private/Repair.php index 65e0342905a..4d14bf2550c 100644 --- a/lib/private/Repair.php +++ b/lib/private/Repair.php @@ -40,6 +40,7 @@ use OC\Repair\NC11\MoveAvatars; use OC\Repair\NC12\InstallCoreBundle; use OC\Repair\NC12\UpdateLanguageCodes; use OC\Repair\OldGroupMembershipShares; +use OC\Repair\Owncloud\SaveAccountsTableData; use OC\Repair\RemoveRootShares; use OC\Repair\SqliteAutoincrement; use OC\Repair\RepairMimeTypes; @@ -166,9 +167,11 @@ class Repair implements IOutput{ */ public static function getBeforeUpgradeRepairSteps() { $connection = \OC::$server->getDatabaseConnection(); + $config = \OC::$server->getConfig(); $steps = [ new Collation(\OC::$server->getConfig(), \OC::$server->getLogger(), $connection, true), new SqliteAutoincrement($connection), + new SaveAccountsTableData($connection, $config), ]; return $steps; |