Apply prefix to foreign key's "on" attribute, too.
This commit is contained in:
parent
d9802fe656
commit
7ead1796d0
|
@ -21,7 +21,7 @@ public function foreign(Table $table, Fluent $command)
|
|||
// command is being executed and the referenced table are wrapped.
|
||||
$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
|
||||
// the columns referenced by the foreign key. We'll cast the referenced
|
||||
|
|
Loading…
Reference in New Issue