aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/db
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-09-10 13:33:59 +0200
committerRobin Appelman <icewind@owncloud.com>2014-10-22 12:29:53 +0200
commite6f6cdd19fe2b9726fd85a684b9f624e509e3994 (patch)
treeabd5ddef6d789bda849950469734596dafb793b9 /lib/private/db
parent2ae6a0d96d45e2270a9c06bbfc91d1733fa9fce3 (diff)
downloadnextcloud-server-e6f6cdd19fe2b9726fd85a684b9f624e509e3994.tar.gz
nextcloud-server-e6f6cdd19fe2b9726fd85a684b9f624e509e3994.zip
Bit more cleanup
Diffstat (limited to 'lib/private/db')
-rw-r--r--lib/private/db/mdb2schemamanager.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/db/mdb2schemamanager.php b/lib/private/db/mdb2schemamanager.php
index a07c421b9b8..fb3230e93af 100644
--- a/lib/private/db/mdb2schemamanager.php
+++ b/lib/private/db/mdb2schemamanager.php
@@ -21,7 +21,7 @@ class MDB2SchemaManager {
protected $conn;
/**
- * @param \OC\DB\Connection $conn
+ * @param \OCP\IDBConnection $conn
*/
public function __construct($conn) {
$this->conn = $conn;
@@ -154,7 +154,8 @@ class MDB2SchemaManager {
$this->conn->commit();
if ($this->conn->getDatabasePlatform() instanceof SqlitePlatform) {
- \OC_DB::reconnect();
+ $this->conn->close();
+ $this->conn->connect();
}
return true;
}