Skip to content

Commit

Permalink
Added support for a schema array to PostgresBuilder (#15535) (#18835)
Browse files Browse the repository at this point in the history
  • Loading branch information
jchamberlain authored and taylorotwell committed Apr 17, 2017
1 parent 9dd6158 commit 26924f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Database/Schema/PostgresBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ public function hasTable($table)

$schema = $this->connection->getConfig('schema');

if (is_array($schema)) {
$schema = head($schema);
}

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

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

0 comments on commit 26924f5

Please sign in to comment.