Skip to content

Commit

Permalink
[FIX] #18026 - PostgreSQL: improve table existence check (or assume d…
Browse files Browse the repository at this point in the history
…efault schema as "public") (#18041)
  • Loading branch information
phackwer authored and taylorotwell committed Feb 21, 2017
1 parent e80a34e commit d48e91a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Database/Schema/PostgresBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ public function hasTable($table)
$schema = head($schema);
}

$schema = $schema ? $schema : 'public';

$table = $this->connection->getTablePrefix().$table;

return count($this->connection->select(
Expand Down

0 comments on commit d48e91a

Please sign in to comment.