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-06-16 15:39:03 +0300
committerDaniel Kesselberg <mail@danielkesselberg.de>2021-07-06 23:04:31 +0300
commit8fb14b5ffa3450b2c2201ff9bb42c589e4a4afb7 (patch)
treea5b84701a79eca0784c96a87b37bb20127c4ba86 /lib/Migration
parent70ef1726ad78b25db571e4b8096eaaf2fa2d84c2 (diff)
Add provisioning for aliases
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/Migration')
-rw-r--r--lib/Migration/Version1101Date20210616141806.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/Migration/Version1101Date20210616141806.php b/lib/Migration/Version1101Date20210616141806.php
new file mode 100644
index 000000000..0687b9091
--- /dev/null
+++ b/lib/Migration/Version1101Date20210616141806.php
@@ -0,0 +1,34 @@
+<?php
+
+declare(strict_types=1);
+
+namespace OCA\Mail\Migration;
+
+use Closure;
+use Doctrine\DBAL\Schema\SchemaException;
+use OCP\DB\ISchemaWrapper;
+use OCP\Migration\IOutput;
+use OCP\Migration\SimpleMigrationStep;
+
+class Version1101Date20210616141806 extends SimpleMigrationStep {
+ /**
+ * @throws SchemaException
+ */
+ public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
+ /** @var ISchemaWrapper $schema */
+ $schema = $schemaClosure();
+
+ $provisioningTable = $schema->getTable('mail_provisionings');
+ $provisioningTable->addColumn('ldap_aliases_provisioning', 'boolean', [
+ 'notnull' => false,
+ 'default' => false
+ ]);
+ $provisioningTable->addColumn('ldap_aliases_attribute', 'string', [
+ 'notnull' => false,
+ 'length' => 255,
+ 'default' => '',
+ ]);
+
+ return $schema;
+ }
+}