diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2021-01-08 13:29:33 +0300 |
---|---|---|
committer | GretaD <gretadoci@gmail.com> | 2021-01-14 15:11:42 +0300 |
commit | dce93038e51b72600d584e18132291dd8c785ab2 (patch) | |
tree | 925873a62622672374c60ad5768fef7f3c22c2d5 /lib/Migration | |
parent | 5d0409edbd154acba559ca24697d90eb6555da7f (diff) |
Sent and request mdn (read confirmation)
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/Migration')
-rw-r--r-- | lib/Migration/Version1080Date20210108093802.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/Migration/Version1080Date20210108093802.php b/lib/Migration/Version1080Date20210108093802.php new file mode 100644 index 000000000..f6b303750 --- /dev/null +++ b/lib/Migration/Version1080Date20210108093802.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 Version1080Date20210108093802 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(); + + $messagesTable = $schema->getTable('mail_messages'); + $messagesTable->addColumn('flag_mdnsent', 'boolean', [ + 'notnull' => true, + 'default' => false, + ]); + + return $schema; + } +} |