Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1553f0c

Browse files
committed
Add prefix to has table call for MySQL.
1 parent ec35b13 commit 1553f0c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Illuminate/Database/Schema/MySqlBuilder.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ public function hasTable($table)
1414

1515
$database = $this->connection->getDatabaseName();
1616

17+
$table = $this->connection->getTablePrefix().$table;
18+
1719
return count($this->connection->select($sql, array($database, $table))) > 0;
1820
}
1921

0 commit comments

Comments
 (0)