diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-07-16 18:41:08 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-09-18 13:27:26 +0200 |
commit | 947e3d7ab5921d4175dc8a1e30fe35025e714926 (patch) | |
tree | 63f5853a85463025200eebd1032962da91c260a9 /lib/private/repair.php | |
parent | 188d6d2e286ea84e7b1ec601783a6dc37ec1b25c (diff) | |
download | nextcloud-server-947e3d7ab5921d4175dc8a1e30fe35025e714926.tar.gz nextcloud-server-947e3d7ab5921d4175dc8a1e30fe35025e714926.zip |
Add repair step for outdated OCS IDs
There is the case where OCs IDs might become outdated such as it has been with the calendar and contacts app which refer to the old dummy entry. This means that users with the old OCS id can't update updates as well will receive invalid state flags. (e.g. "experimental" instead of "approved")
To allow instances to properly update the applications in the future we need to migrate the OCS IDs for now manually.
Diffstat (limited to 'lib/private/repair.php')
-rw-r--r-- | lib/private/repair.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/repair.php b/lib/private/repair.php index bf385af2c2b..533bf05b54c 100644 --- a/lib/private/repair.php +++ b/lib/private/repair.php @@ -43,6 +43,7 @@ use OC\Repair\RepairConfig; use OC\Repair\RepairLegacyStorages; use OC\Repair\RepairMimeTypes; use OC\Repair\SearchLuceneTables; +use OC\Repair\UpdateOutdatedOcsIds; class Repair extends BasicEmitter { /** @@ -101,7 +102,7 @@ class Repair extends BasicEmitter { * @return array of RepairStep instances */ public static function getRepairSteps() { - return array( + return [ new RepairMimeTypes(), new RepairLegacyStorages(\OC::$server->getConfig(), \OC::$server->getDatabaseConnection()), new RepairConfig(), @@ -111,7 +112,8 @@ class Repair extends BasicEmitter { new DropOldTables(\OC::$server->getDatabaseConnection()), new DropOldJobs(\OC::$server->getJobList()), new RemoveGetETagEntries(\OC::$server->getDatabaseConnection()), - ); + new UpdateOutdatedOcsIds(\OC::$server->getConfig()), + ]; } /** |