diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-11-24 23:13:23 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-26 22:39:01 +0100 |
commit | 4fbc2774ef4c1c8962ad9129e522e13a19938120 (patch) | |
tree | bde9e85d7875bd741407327e1ac31ca99ed1486b /lib/private/db/mdb2schemamanager.php | |
parent | 4f15282bc998bb68896b5df67f4f749dd435897d (diff) | |
download | nextcloud-server-4fbc2774ef4c1c8962ad9129e522e13a19938120.tar.gz nextcloud-server-4fbc2774ef4c1c8962ad9129e522e13a19938120.zip |
on mssql the schema migration sometimes fails due to an already existing transaction - error: 'New transaction is not allowed because there are other threads running in the session.'
The solution is to simple reconnect to the database to start with a fresh connection
Diffstat (limited to 'lib/private/db/mdb2schemamanager.php')
-rw-r--r-- | lib/private/db/mdb2schemamanager.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/db/mdb2schemamanager.php b/lib/private/db/mdb2schemamanager.php index 416e2f55426..6378c769055 100644 --- a/lib/private/db/mdb2schemamanager.php +++ b/lib/private/db/mdb2schemamanager.php @@ -19,6 +19,8 @@ class MDB2SchemaManager { */ public function __construct($conn) { $this->conn = $conn; + $this->conn->close(); + $this->conn->connect(); } /** |