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;
|
|
|
|
|
|
2022-12-06 05:40:10 -05:00
|
|
|
use Closure;
|
|
|
|
|
use OCP\DB\ISchemaWrapper;
|
|
|
|
|
|
2017-06-02 07:54:09 -04:00
|
|
|
/**
|
|
|
|
|
* @since 13.0.0
|
|
|
|
|
*/
|
|
|
|
|
abstract class SimpleMigrationStep implements IMigrationStep {
|
2018-04-12 11:47:40 -04:00
|
|
|
/**
|
2022-12-06 05:40:10 -05:00
|
|
|
* Human-readable name of the migration step
|
2018-04-12 11:47:40 -04:00
|
|
|
*
|
|
|
|
|
* @return string
|
2018-05-30 15:28:55 -04:00
|
|
|
* @since 14.0.0
|
2018-04-12 11:47:40 -04:00
|
|
|
*/
|
|
|
|
|
public function name(): string {
|
|
|
|
|
return '';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2022-12-06 05:40:10 -05:00
|
|
|
* Human-readable description of the migration step
|
2018-04-12 11:47:40 -04:00
|
|
|
*
|
|
|
|
|
* @return string
|
2018-05-30 15:28:55 -04:00
|
|
|
* @since 14.0.0
|
2018-04-12 11:47:40 -04:00
|
|
|
*/
|
|
|
|
|
public function description(): string {
|
|
|
|
|
return '';
|
|
|
|
|
}
|
2017-06-02 07:54:09 -04:00
|
|
|
|
|
|
|
|
/**
|
2022-12-06 05:40:10 -05:00
|
|
|
* @param IOutput $output
|
|
|
|
|
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
|
|
|
|
|
* @psalm-param Closure():ISchemaWrapper $schemaClosure
|
|
|
|
|
* @param array $options
|
2017-06-02 07:54:09 -04:00
|
|
|
* @since 13.0.0
|
|
|
|
|
*/
|
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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2022-12-06 05:40:10 -05:00
|
|
|
* @param IOutput $output
|
|
|
|
|
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
|
|
|
|
|
* @psalm-param Closure():ISchemaWrapper $schemaClosure
|
|
|
|
|
* @param array $options
|
|
|
|
|
* @return null|ISchemaWrapper
|
2017-06-02 07:54:09 -04:00
|
|
|
* @since 13.0.0
|
|
|
|
|
*/
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2022-12-06 05:40:10 -05:00
|
|
|
* @param IOutput $output
|
|
|
|
|
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
|
|
|
|
|
* @psalm-param Closure():ISchemaWrapper $schemaClosure
|
|
|
|
|
* @param array $options
|
2017-06-02 07:54:09 -04:00
|
|
|
* @since 13.0.0
|
|
|
|
|
*/
|
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
|
|
|
}
|
|
|
|
|
}
|