diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-10-19 16:41:43 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-10-29 09:26:26 +0100 |
commit | e5a7e3124ae4054f5fdf99e5dd5cca373b4d83ad (patch) | |
tree | 92a97f6e0ac1838c746a0d237eb5923dad2c7f95 /lib/private/repair.php | |
parent | ca2fd3007343dc4ba10d2b9d5e44ada0340d90cc (diff) | |
download | nextcloud-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.php | 13 |
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. * |