Skip to content

Commit 34e9386

Browse files
committed
Support table names with periods
1 parent c08041a commit 34e9386

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Database/Schema/PostgresBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ protected function getSchema($table)
9696
$schema = $this->connection->getConfig('schema');
9797

9898
if (is_array($schema)) {
99-
if (in_array($table[0], $schema)) {
100-
return [ $table[0], $table[1] ];
99+
if (in_array($table[0], $schema)) { // Table contains schema prefix
100+
return [ array_shift($table), implode('.', $table) ];
101101
}
102102

103103
$schema = head($schema);

0 commit comments

Comments
 (0)