Commit d43157b6 authored by Taylor Otwell's avatar Taylor Otwell

Fix drop_foreign SQL grammar for MySQL.

Signed-off-by: 's avatarTaylor Otwell <taylorotwell@gmail.com>
parent 1d93cab0
......@@ -301,7 +301,7 @@ class MySQL extends Grammar {
*/
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;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment