Skip to content

Commit

Permalink
PgSqlDriver: fixed reset failing to create schema [closes #22]
Browse files Browse the repository at this point in the history
  • Loading branch information
JanTvrdik committed Jul 22, 2015
1 parent 0cdbefb commit 9be2900
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Drivers/PgSqlDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public function rollbackTransaction()
public function lock()
{
try {
$this->dbal->exec("CREATE SCHEMA IF NOT EXISTS {$this->schema}"); // hotfix
$this->dbal->exec("CREATE TABLE {$this->schema}.{$this->lockTableName} (\"foo\" INT)");
} catch (\Exception $e) {
throw new LockException('Unable to acquire a lock.', NULL, $e);
Expand Down

0 comments on commit 9be2900

Please sign in to comment.