fix(migrations): Restore type definitions for API class used in apps
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
@@ -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) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user