fix(migrations): Restore type definitions for API class used in apps

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2026-02-18 08:36:08 +01:00
parent 16d3cee3a2
commit 06f35ec4f8
No known key found for this signature in database
GPG key ID: F72FA5B49FFA96B0

View file

@ -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) {
}