|
|
@ -38,6 +38,7 @@ use Closure; |
|
|
use OCP\DB\ISchemaWrapper; |
|
|
use OCP\DB\ISchemaWrapper; |
|
|
use OCP\Migration\IOutput; |
|
|
use OCP\Migration\IOutput; |
|
|
use OCP\Migration\SimpleMigrationStep; |
|
|
use OCP\Migration\SimpleMigrationStep; |
|
|
|
|
|
use Override; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* FIXME Auto-generated migration step: Please modify to your needs! |
|
|
* FIXME Auto-generated migration step: Please modify to your needs! |
|
|
@ -49,6 +50,7 @@ class {{classname}} extends SimpleMigrationStep { |
|
|
* @param Closure(): ISchemaWrapper $schemaClosure |
|
|
* @param Closure(): ISchemaWrapper $schemaClosure |
|
|
* @param array $options |
|
|
* @param array $options |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
#[Override]
|
|
|
public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void { |
|
|
public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -58,6 +60,7 @@ class {{classname}} extends SimpleMigrationStep { |
|
|
* @param array $options |
|
|
* @param array $options |
|
|
* @return null|ISchemaWrapper |
|
|
* @return null|ISchemaWrapper |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
#[Override]
|
|
|
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { |
|
|
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { |
|
|
{{schemabody}} |
|
|
{{schemabody}} |
|
|
} |
|
|
} |
|
|
@ -67,6 +70,7 @@ class {{classname}} extends SimpleMigrationStep { |
|
|
* @param Closure(): ISchemaWrapper $schemaClosure |
|
|
* @param Closure(): ISchemaWrapper $schemaClosure |
|
|
* @param array $options |
|
|
* @param array $options |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
#[Override]
|
|
|
public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void { |
|
|
public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|