diff --git a/src/Illuminate/Database/Schema/PostgresBuilder.php b/src/Illuminate/Database/Schema/PostgresBuilder.php index 42198f89fcc1..fb73deaedf1e 100755 --- a/src/Illuminate/Database/Schema/PostgresBuilder.php +++ b/src/Illuminate/Database/Schema/PostgresBuilder.php @@ -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(