Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions lib/public/Migration/SimpleMigrationStep.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/
namespace OCP\Migration;

use OCP\DB\ISchemaWrapper;
use Override;

/**
Expand All @@ -15,25 +16,51 @@
* @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) {
}
Expand Down
Loading