Browse Source

Fix drop_foreign SQL grammar for MySQL.

Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
Taylor Otwell 13 years ago
parent
commit
d43157b61f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/database/schema/grammars/mysql.php

+ 1 - 1
laravel/database/schema/grammars/mysql.php

@@ -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;
 	}
 
 	/**