blob: 0687b90919cc6bdd27aa4ad797db3e6b0605052b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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;
}
}
|