From 7ead1796d08efe02fb2d5874affa06193c572c23 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Wed, 6 Jun 2012 12:33:50 +0300 Subject: [PATCH] Apply prefix to foreign key's "on" attribute, too. --- laravel/database/schema/grammars/grammar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/database/schema/grammars/grammar.php b/laravel/database/schema/grammars/grammar.php index 1d3390a1..da93aa64 100644 --- a/laravel/database/schema/grammars/grammar.php +++ b/laravel/database/schema/grammars/grammar.php @@ -21,7 +21,7 @@ abstract class Grammar extends \Laravel\Database\Grammar { // 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