2025-08-21 10:42:34 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
*/
|
|
|
|
|
namespace OC\Repair;
|
|
|
|
|
|
2025-10-09 09:12:54 -04:00
|
|
|
use OC\Core\BackgroundJobs\PreviewMigrationJob;
|
2025-08-21 10:42:34 -04:00
|
|
|
use OCP\BackgroundJob\IJobList;
|
|
|
|
|
use OCP\Migration\IOutput;
|
|
|
|
|
use OCP\Migration\IRepairStep;
|
|
|
|
|
|
|
|
|
|
class AddMovePreviewJob implements IRepairStep {
|
|
|
|
|
public function __construct(
|
|
|
|
|
private IJobList $jobList,
|
|
|
|
|
) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getName() {
|
|
|
|
|
return 'Queue a job to move the preview';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function run(IOutput $output) {
|
2025-10-09 09:12:54 -04:00
|
|
|
$this->jobList->add(PreviewMigrationJob::class);
|
2025-08-21 10:42:34 -04:00
|
|
|
}
|
|
|
|
|
}
|