2022-10-13 09:40:47 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
2024-05-30 14:13:41 -04:00
|
|
|
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2022-10-13 09:40:47 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace OCA\Theming\Migration;
|
|
|
|
|
|
|
|
|
|
use OCA\Theming\Jobs\MigrateBackgroundImages;
|
|
|
|
|
use OCP\BackgroundJob\IJobList;
|
|
|
|
|
use OCP\Migration\IOutput;
|
2024-10-10 06:40:31 -04:00
|
|
|
use OCP\Migration\IRepairStep;
|
2022-10-13 09:40:47 -04:00
|
|
|
|
2024-10-10 06:40:31 -04:00
|
|
|
class InitBackgroundImagesMigration implements IRepairStep {
|
2022-10-13 09:40:47 -04:00
|
|
|
|
2024-10-18 06:04:22 -04:00
|
|
|
public function __construct(
|
|
|
|
|
private IJobList $jobList,
|
|
|
|
|
) {
|
2022-10-13 09:40:47 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getName() {
|
|
|
|
|
return 'Initialize migration of background images from dashboard to theming app';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function run(IOutput $output) {
|
2022-10-21 03:38:48 -04:00
|
|
|
$this->jobList->add(MigrateBackgroundImages::class, ['stage' => MigrateBackgroundImages::STAGE_PREPARE]);
|
2022-10-13 09:40:47 -04:00
|
|
|
}
|
|
|
|
|
}
|