Merge pull request #775 from franzliedke/patch-9
Foreign key creation ignores database prefix
This commit is contained in:
@@ -21,7 +21,7 @@ abstract class Grammar extends \Laravel\Database\Grammar {
|
|||||||
// command is being executed and the referenced table are wrapped.
|
// command is being executed and the referenced table are wrapped.
|
||||||
$table = $this->wrap($table);
|
$table = $this->wrap($table);
|
||||||
|
|
||||||
$on = $this->wrap($command->on);
|
$on = $this->wrap_table($command->on);
|
||||||
|
|
||||||
// Next we need to columnize both the command table's columns as well as
|
// Next we need to columnize both the command table's columns as well as
|
||||||
// the columns referenced by the foreign key. We'll cast the referenced
|
// the columns referenced by the foreign key. We'll cast the referenced
|
||||||
|
|||||||
Reference in New Issue
Block a user