Fix drop_foreign SQL grammar for MySQL.

Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
This commit is contained in:
Taylor Otwell 2012-03-02 10:27:37 -06:00
parent 1d93cab0d0
commit d43157b61f
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ protected function drop_key(Table $table, Fluent $command)
*/
public function drop_foreign(Table $table, Fluent $command)
{
return $this->drop_constraint($table, $command);
return "ALTER TABLE ".$this->wrap($table)." DROP FOREIGN KEY ".$command->name;
}
/**