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
This commit is contained in:
Thomas Mueller 2013-11-24 23:13:23 +01:00 committed by Thomas Müller
parent 4f15282bc9
commit 4fbc2774ef
1 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,8 @@ class MDB2SchemaManager {
*/
public function __construct($conn) {
$this->conn = $conn;
$this->conn->close();
$this->conn->connect();
}
/**