summaryrefslogtreecommitdiffstats
path: root/lib/private/repair.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-10-19 16:41:43 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-10-29 09:26:26 +0100
commite5a7e3124ae4054f5fdf99e5dd5cca373b4d83ad (patch)
tree92a97f6e0ac1838c746a0d237eb5923dad2c7f95 /lib/private/repair.php
parentca2fd3007343dc4ba10d2b9d5e44ada0340d90cc (diff)
downloadnextcloud-server-e5a7e3124ae4054f5fdf99e5dd5cca373b4d83ad.tar.gz
nextcloud-server-e5a7e3124ae4054f5fdf99e5dd5cca373b4d83ad.zip
Add a repair step that checks for group membership on shares
Diffstat (limited to 'lib/private/repair.php')
-rw-r--r--lib/private/repair.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/private/repair.php b/lib/private/repair.php
index 20219e313fd..f6ac7ebe65b 100644
--- a/lib/private/repair.php
+++ b/lib/private/repair.php
@@ -34,6 +34,7 @@ use OC\Repair\AssetCache;
use OC\Repair\CleanTags;
use OC\Repair\Collation;
use OC\Repair\DropOldJobs;
+use OC\Repair\OldGroupMembershipShares;
use OC\Repair\RemoveGetETagEntries;
use OC\Repair\SqliteAutoincrement;
use OC\Repair\DropOldTables;
@@ -119,6 +120,18 @@ class Repair extends BasicEmitter {
}
/**
+ * Returns expensive repair steps to be run on the
+ * command line with a special option.
+ *
+ * @return array of RepairStep instances
+ */
+ public static function getExpensiveRepairSteps() {
+ return [
+ new OldGroupMembershipShares(\OC::$server->getDatabaseConnection(), \OC::$server->getGroupManager()),
+ ];
+ }
+
+ /**
* Returns the repair steps to be run before an
* upgrade.
*