diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2021-04-06 17:55:22 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-04-19 14:10:27 +0300 |
commit | 28ea91bf6b15e098c158bd68ff4435334db00849 (patch) | |
tree | 5dea2595a40d5ee9bb56ad96978640be3c57d1eb /lib/Migration | |
parent | e39a7f9654879f6b2be2d2983ef48aab5832fca8 (diff) |
Allow signatures for aliases
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Migration')
-rw-r--r-- | lib/Migration/Version1100Date20210317164707.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/Migration/Version1100Date20210317164707.php b/lib/Migration/Version1100Date20210317164707.php new file mode 100644 index 000000000..1239d36cc --- /dev/null +++ b/lib/Migration/Version1100Date20210317164707.php @@ -0,0 +1,32 @@ +<?php + +declare(strict_types=1); + +namespace OCA\Mail\Migration; + +use Closure; +use OCP\DB\ISchemaWrapper; +use OCP\Migration\IOutput; +use OCP\Migration\SimpleMigrationStep; + +class Version1100Date20210317164707 extends SimpleMigrationStep { + /** + * @param IOutput $output + * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` + * @param array $options + * @return null|ISchemaWrapper + */ + public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { + /** @var ISchemaWrapper $schema */ + $schema = $schemaClosure(); + + $table = $schema->getTable('mail_aliases'); + $table->addColumn('signature', 'text', [ + 'notnull' => false, + 'length' => 1024, + 'default' => '', + ]); + + return $schema; + } +} |