diff options
author | Silvio Zimmer <silvio.zimmer@die-kinderwelt.com> | 2021-04-21 15:17:39 +0300 |
---|---|---|
committer | Silvio Zimmer <silvio.zimmer@die-kinderwelt.com> | 2021-04-21 15:17:39 +0300 |
commit | a23a03f185a233bce1d277426db842d4d6fa41f9 (patch) | |
tree | b039079eaf4b7701b312f6f15a3fdc66a6cc9209 /lib/Migration | |
parent | 3e8edcf91acd7ccbff6e4fa8fd81d1f67a3955a3 (diff) |
fixed await with promises
Signed-off-by: Silvio Zimmer <silvio.zimmer@die-kinderwelt.com>
Diffstat (limited to 'lib/Migration')
-rw-r--r-- | lib/Migration/Version1100Date20210421113423.php | 46 |
1 files changed, 22 insertions, 24 deletions
diff --git a/lib/Migration/Version1100Date20210421113423.php b/lib/Migration/Version1100Date20210421113423.php index 54ee74feb..dd10ce456 100644 --- a/lib/Migration/Version1100Date20210421113423.php +++ b/lib/Migration/Version1100Date20210421113423.php @@ -30,28 +30,26 @@ use OCP\DB\ISchemaWrapper; use OCP\Migration\IOutput; use OCP\Migration\SimpleMigrationStep; -class Version1100Date20210421113423 extends SimpleMigrationStep -{ - - /** - * @param IOutput $output - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` - * @param array $options - * - * @return ISchemaWrapper - */ - public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) - { - /** @var ISchemaWrapper $schema */ - $schema = $schemaClosure(); - - $accountsTable = $schema->getTable('mail_accounts'); - - $accountsTable->addColumn('signature_above_quote', 'boolean', [ - 'notnull' => false, - 'default' => false, - ]); - - return $schema; - } +class Version1100Date20210421113423 extends SimpleMigrationStep { + + /** + * @param IOutput $output + * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` + * @param array $options + * + * @return ISchemaWrapper + */ + public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) { + /** @var ISchemaWrapper $schema */ + $schema = $schemaClosure(); + + $accountsTable = $schema->getTable('mail_accounts'); + + $accountsTable->addColumn('signature_above_quote', 'boolean', [ + 'notnull' => false, + 'default' => false, + ]); + + return $schema; + } } |