diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2025-06-04 07:38:06 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2025-06-04 07:38:06 +0200 |
commit | 3a7c094f3ba4b3584aca9578b9d1d4ccc9749745 (patch) | |
tree | 8df551d1f257441e88e1ce9635e0547443ed6d50 | |
parent | aef905a13bc426e4f4898f46997977d4907bc1b6 (diff) | |
download | nextcloud-server-refactor/migration-override-attribute.tar.gz nextcloud-server-refactor/migration-override-attribute.zip |
refactor: generate migrations with override attributesrefactor/migration-override-attribute
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-rw-r--r-- | core/Command/Db/Migrations/GenerateCommand.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/Command/Db/Migrations/GenerateCommand.php b/core/Command/Db/Migrations/GenerateCommand.php index ed29412f00b..aeedef8df2f 100644 --- a/core/Command/Db/Migrations/GenerateCommand.php +++ b/core/Command/Db/Migrations/GenerateCommand.php @@ -38,6 +38,7 @@ use Closure; use OCP\DB\ISchemaWrapper; use OCP\Migration\IOutput; use OCP\Migration\SimpleMigrationStep; +use Override; /** * FIXME Auto-generated migration step: Please modify to your needs! @@ -49,6 +50,7 @@ class {{classname}} extends SimpleMigrationStep { * @param Closure(): ISchemaWrapper $schemaClosure * @param array $options */ + #[Override] public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void { } @@ -58,6 +60,7 @@ class {{classname}} extends SimpleMigrationStep { * @param array $options * @return null|ISchemaWrapper */ + #[Override] public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { {{schemabody}} } @@ -67,6 +70,7 @@ class {{classname}} extends SimpleMigrationStep { * @param Closure(): ISchemaWrapper $schemaClosure * @param array $options */ + #[Override] public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void { } } |