Skip to content

Commit 9be2900

Browse files
committed
PgSqlDriver: fixed reset failing to create schema [closes #22]
1 parent 0cdbefb commit 9be2900

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Drivers/PgSqlDriver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public function rollbackTransaction()
8080
public function lock()
8181
{
8282
try {
83+
$this->dbal->exec("CREATE SCHEMA IF NOT EXISTS {$this->schema}"); // hotfix
8384
$this->dbal->exec("CREATE TABLE {$this->schema}.{$this->lockTableName} (\"foo\" INT)");
8485
} catch (\Exception $e) {
8586
throw new LockException('Unable to acquire a lock.', NULL, $e);

0 commit comments

Comments
 (0)