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

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2020-07-05 22:23:00 +0300
committerdartcafe <github@dartcafe.de>2020-07-05 22:23:00 +0300
commit58f3acd75da4156222e0880be341a7c4ce385098 (patch)
tree96fae5288f6b8e5e231cce4ac8ef058086fe198b /lib
parentf1749a72e823a9a9d13dfe1f2390f71339a0a616 (diff)
mark all invitations as sent while migrating
Diffstat (limited to 'lib')
-rw-r--r--lib/Migration/Version0105Date20200704084037.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Migration/Version0105Date20200704084037.php b/lib/Migration/Version0105Date20200704084037.php
index 6bdbf941..934d2a59 100644
--- a/lib/Migration/Version0105Date20200704084037.php
+++ b/lib/Migration/Version0105Date20200704084037.php
@@ -75,4 +75,16 @@ class Version0105Date20200704084037 extends SimpleMigrationStep {
return $schema;
}
+ /**
+ * @param IOutput $output
+ * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
+ * @param array $options
+ * @since 13.0.0
+ */
+ public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $options) {
+ $query = $this->connection->getQueryBuilder();
+ $query->update('polls_share')
+ ->set('invitation_sent', 'id');
+ $query->execute();
+ }
}