Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2021-01-08 13:29:33 +0300
committerGretaD <gretadoci@gmail.com>2021-01-14 15:11:42 +0300
commitdce93038e51b72600d584e18132291dd8c785ab2 (patch)
tree925873a62622672374c60ad5768fef7f3c22c2d5 /lib/Migration
parent5d0409edbd154acba559ca24697d90eb6555da7f (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.php32
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;
+ }
+}