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:
parent
4f15282bc9
commit
4fbc2774ef
|
@ -19,6 +19,8 @@ class MDB2SchemaManager {
|
||||||
*/
|
*/
|
||||||
public function __construct($conn) {
|
public function __construct($conn) {
|
||||||
$this->conn = $conn;
|
$this->conn = $conn;
|
||||||
|
$this->conn->close();
|
||||||
|
$this->conn->connect();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue