mirror of
https://github.com/nextcloud/server.git
synced 2026-04-26 08:38:11 -04:00
fix(repair): Fix repair steps when files_sharing is disabled
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
4de847e6dc
commit
d71f2ec1ba
1 changed files with 13 additions and 14 deletions
|
|
@ -66,12 +66,10 @@ use OCP\AppFramework\Utility\ITimeFactory;
|
|||
use OCP\Collaboration\Resources\IManager;
|
||||
use OCP\EventDispatcher\IEventDispatcher;
|
||||
use OCP\Files\AppData\IAppDataFactory;
|
||||
use OCP\IAppConfig;
|
||||
use OCP\IConfig;
|
||||
use OCP\IDBConnection;
|
||||
use OCP\Migration\IOutput;
|
||||
use OCP\Migration\IRepairStep;
|
||||
use OCP\Notification\IManager as INotificationManager;
|
||||
use OCP\Server;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Throwable;
|
||||
|
||||
|
|
@ -212,18 +210,19 @@ class Repair implements IOutput {
|
|||
* @return IRepairStep[]
|
||||
*/
|
||||
public static function getExpensiveRepairSteps() {
|
||||
return [
|
||||
new OldGroupMembershipShares(\OC::$server->getDatabaseConnection(), \OC::$server->getGroupManager()),
|
||||
new RemoveBrokenProperties(\OCP\Server::get(IDBConnection::class)),
|
||||
new RepairMimeTypes(
|
||||
\OCP\Server::get(IConfig::class),
|
||||
\OCP\Server::get(IAppConfig::class),
|
||||
\OCP\Server::get(IDBConnection::class)
|
||||
),
|
||||
\OCP\Server::get(DeleteSchedulingObjects::class),
|
||||
\OC::$server->get(RemoveObjectProperties::class),
|
||||
\OCP\Server::get(CleanupShareTarget::class),
|
||||
$expensiveSteps = [
|
||||
Server::get(OldGroupMembershipShares::class),
|
||||
Server::get(RemoveBrokenProperties::class),
|
||||
Server::get(RepairMimeTypes::class),
|
||||
Server::get(DeleteSchedulingObjects::class),
|
||||
Server::get(RemoveObjectProperties::class),
|
||||
];
|
||||
|
||||
if (class_exists(CleanupShareTarget::class)) {
|
||||
$expensiveSteps[] = Server::get(CleanupShareTarget::class);
|
||||
}
|
||||
|
||||
return $expensiveSteps;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue