nextcloud/lib/public/Migration/SimpleMigrationStep.php
Carl Schwan f6c839d125
refactor(psalm): Modernize migration doc
And remove all the duplication in the subclasses

Signed-off-by: Carl Schwan <carlschwan@kde.org>
2026-02-12 11:25:55 +01:00

40 lines
818 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\Migration;
use Override;
/**
* Abstract class implementing migration step.
*
* @since 13.0.0
*/
abstract class SimpleMigrationStep implements IMigrationStep {
#[Override]
public function name(): string {
return '';
}
#[Override]
public function description(): string {
return '';
}
#[Override]
public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array $options) {
}
#[Override]
public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
return null;
}
#[Override]
public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $options) {
}
}