Bump DBAL version and make TestUtil more lenient
This commit is contained in:
parent
9795cb1f0d
commit
3b9312e291
2
lib/vendor/doctrine-dbal
vendored
2
lib/vendor/doctrine-dbal
vendored
@ -1 +1 @@
|
||||
Subproject commit 82cc921447fde697bf3d9f5285d0f0b8587303d8
|
||||
Subproject commit 537de7ea6a34edbcc40bc6ca92e0a3f816b59330
|
@ -70,10 +70,16 @@ class TestUtil
|
||||
} else {
|
||||
$sm = $realConn->getSchemaManager();
|
||||
|
||||
$tableNames = $sm->listTableNames();
|
||||
|
||||
foreach ($tableNames AS $tableName) {
|
||||
$sm->dropTable($tableName);
|
||||
/* @var $schema Schema */
|
||||
$schema = $sm->createSchema();
|
||||
$stmts = $schema->toDropSql($realConn->getDatabasePlatform());
|
||||
|
||||
foreach ($stmts AS $stmt) {
|
||||
try {
|
||||
$realConn->exec($stmt);
|
||||
} catch(\Exception $e) {
|
||||
// TODO: Now is this a real good idea?
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user