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:
authorSilvio Zimmer <silvio.zimmer@die-kinderwelt.com>2021-04-21 15:17:39 +0300
committerSilvio Zimmer <silvio.zimmer@die-kinderwelt.com>2021-04-21 15:17:39 +0300
commita23a03f185a233bce1d277426db842d4d6fa41f9 (patch)
treeb039079eaf4b7701b312f6f15a3fdc66a6cc9209 /lib/Migration
parent3e8edcf91acd7ccbff6e4fa8fd81d1f67a3955a3 (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.php46
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;
+ }
}