summaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-10-29 11:18:38 +0100
committerJulius Härtl <jus@bitgrid.net>2019-03-01 20:56:16 +0100
commitab4b293854bf627c1d5dafcd7218e36cb3580bad (patch)
tree0684345b2e2703ecd17b61742bdf881e8ca76875 /lib/private/Collaboration
parent702dcfb72848b36921a310188aa019d810668ebc (diff)
downloadnextcloud-server-ab4b293854bf627c1d5dafcd7218e36cb3580bad.tar.gz
nextcloud-server-ab4b293854bf627c1d5dafcd7218e36cb3580bad.zip
Insert new collection into database
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Collaboration')
-rw-r--r--lib/private/Collaboration/Resources/Manager.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Collaboration/Resources/Manager.php b/lib/private/Collaboration/Resources/Manager.php
index 18301e0f2f5..82a14f47d9e 100644
--- a/lib/private/Collaboration/Resources/Manager.php
+++ b/lib/private/Collaboration/Resources/Manager.php
@@ -72,7 +72,10 @@ class Manager implements IManager {
*/
public function newCollection(string $name): ICollection {
$query = $this->connection->getQueryBuilder();
- $query->insert('collres_collections');
+ $query->insert('collres_collections')
+ ->values([
+ 'name' => $query->createNamedParameter($name),
+ ]);
$query->execute();
return new Collection($this, $this->connection, $query->getLastInsertId(), $name);