aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2025-06-05 17:28:01 +0200
committerGitHub <noreply@github.com>2025-06-05 17:28:01 +0200
commit4b50105fb4fe0175454ce01309075f7de71be96d (patch)
tree050c4144a1c168a03bb2beadd7ce8ce3922bf0e3
parentd6a53ceab022271550b68188ed85069b39b0738f (diff)
parent3a7c094f3ba4b3584aca9578b9d1d4ccc9749745 (diff)
downloadnextcloud-server-4b50105fb4fe0175454ce01309075f7de71be96d.tar.gz
nextcloud-server-4b50105fb4fe0175454ce01309075f7de71be96d.zip
Merge pull request #53315 from nextcloud/refactor/migration-override-attribute
refactor: generate migrations with override attributes
-rw-r--r--core/Command/Db/Migrations/GenerateCommand.php4
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 {
}
}