2017-06-02 07:54:09 -04:00
|
|
|
<?php
|
2020-10-15 04:58:51 -04:00
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2017-06-02 07:54:09 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2017-06-02 07:54:09 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Migration;
|
|
|
|
|
|
2026-02-18 02:36:08 -05:00
|
|
|
use OCP\DB\ISchemaWrapper;
|
2026-02-12 05:25:03 -05:00
|
|
|
use Override;
|
2022-12-06 05:40:10 -05:00
|
|
|
|
2017-06-02 07:54:09 -04:00
|
|
|
/**
|
2026-02-12 05:25:03 -05:00
|
|
|
* Abstract class implementing migration step.
|
|
|
|
|
*
|
2017-06-02 07:54:09 -04:00
|
|
|
* @since 13.0.0
|
|
|
|
|
*/
|
|
|
|
|
abstract class SimpleMigrationStep implements IMigrationStep {
|
2026-02-18 02:36:08 -05:00
|
|
|
/**
|
|
|
|
|
* Human-readable name of the migration step
|
|
|
|
|
*
|
|
|
|
|
* @since 14.0.0
|
|
|
|
|
*/
|
2026-02-12 05:25:03 -05:00
|
|
|
#[Override]
|
2018-04-12 11:47:40 -04:00
|
|
|
public function name(): string {
|
|
|
|
|
return '';
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-18 02:36:08 -05:00
|
|
|
/**
|
|
|
|
|
* Human-readable description of the migration step
|
|
|
|
|
*
|
|
|
|
|
* @since 14.0.0
|
|
|
|
|
*/
|
2026-02-12 05:25:03 -05:00
|
|
|
#[Override]
|
2018-04-12 11:47:40 -04:00
|
|
|
public function description(): string {
|
|
|
|
|
return '';
|
|
|
|
|
}
|
2017-06-02 07:54:09 -04:00
|
|
|
|
2026-02-18 02:36:08 -05:00
|
|
|
/**
|
|
|
|
|
* @param Closure():ISchemaWrapper $schemaClosure
|
|
|
|
|
* @param array{tablePrefix?: string} $options
|
|
|
|
|
* @since 13.0.0
|
|
|
|
|
*/
|
2026-02-12 05:25:03 -05:00
|
|
|
#[Override]
|
2017-06-07 07:51:54 -04:00
|
|
|
public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array $options) {
|
2017-06-02 07:54:09 -04:00
|
|
|
}
|
|
|
|
|
|
2026-02-18 02:36:08 -05:00
|
|
|
/**
|
|
|
|
|
* @param Closure():ISchemaWrapper $schemaClosure
|
|
|
|
|
* @param array{tablePrefix?: string} $options
|
|
|
|
|
* @return null|ISchemaWrapper
|
|
|
|
|
* @since 13.0.0
|
|
|
|
|
*/
|
2026-02-12 05:25:03 -05:00
|
|
|
#[Override]
|
2017-06-07 07:51:54 -04:00
|
|
|
public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
|
2017-06-02 07:54:09 -04:00
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-18 02:36:08 -05:00
|
|
|
/**
|
|
|
|
|
* @param Closure():ISchemaWrapper $schemaClosure
|
|
|
|
|
* @param array{tablePrefix?: string} $options
|
|
|
|
|
* @since 13.0.0
|
|
|
|
|
*/
|
2026-02-12 05:25:03 -05:00
|
|
|
#[Override]
|
2017-06-07 07:51:54 -04:00
|
|
|
public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $options) {
|
2017-06-02 07:54:09 -04:00
|
|
|
}
|
|
|
|
|
}
|