mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
fix(migrations): Restore type definitions for API class used in apps
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
16d3cee3a2
commit
06f35ec4f8
1 changed files with 27 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ declare(strict_types=1);
|
|||
*/
|
||||
namespace OCP\Migration;
|
||||
|
||||
use OCP\DB\ISchemaWrapper;
|
||||
use Override;
|
||||
|
||||
/**
|
||||
|
|
@ -15,25 +16,51 @@ use Override;
|
|||
* @since 13.0.0
|
||||
*/
|
||||
abstract class SimpleMigrationStep implements IMigrationStep {
|
||||
/**
|
||||
* Human-readable name of the migration step
|
||||
*
|
||||
* @since 14.0.0
|
||||
*/
|
||||
#[Override]
|
||||
public function name(): string {
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Human-readable description of the migration step
|
||||
*
|
||||
* @since 14.0.0
|
||||
*/
|
||||
#[Override]
|
||||
public function description(): string {
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Closure():ISchemaWrapper $schemaClosure
|
||||
* @param array{tablePrefix?: string} $options
|
||||
* @since 13.0.0
|
||||
*/
|
||||
#[Override]
|
||||
public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array $options) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Closure():ISchemaWrapper $schemaClosure
|
||||
* @param array{tablePrefix?: string} $options
|
||||
* @return null|ISchemaWrapper
|
||||
* @since 13.0.0
|
||||
*/
|
||||
#[Override]
|
||||
public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Closure():ISchemaWrapper $schemaClosure
|
||||
* @param array{tablePrefix?: string} $options
|
||||
* @since 13.0.0
|
||||
*/
|
||||
#[Override]
|
||||
public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $options) {
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue