1
0
mirror of synced 2025-02-20 14:13:15 +03:00

Bump DBAL version and make TestUtil more lenient

This commit is contained in:
Benjamin Eberlei 2011-10-25 22:54:20 +02:00
parent 9795cb1f0d
commit 3b9312e291
2 changed files with 11 additions and 5 deletions

@ -1 +1 @@
Subproject commit 82cc921447fde697bf3d9f5285d0f0b8587303d8
Subproject commit 537de7ea6a34edbcc40bc6ca92e0a3f816b59330

View File

@ -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?
}
}
}