Fix drop_foreign SQL grammar for MySQL.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
This commit is contained in:
parent
1d93cab0d0
commit
d43157b61f
|
@ -301,7 +301,7 @@ protected function drop_key(Table $table, Fluent $command)
|
||||||
*/
|
*/
|
||||||
public function drop_foreign(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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue