Get rid of duplicate code for DROP TABLE in schema grammars.
This commit is contained in:
@@ -50,6 +50,18 @@ abstract class Grammar extends \Laravel\Database\Grammar {
|
||||
return $sql;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate the SQL statement for a drop table command.
|
||||
*
|
||||
* @param Table $table
|
||||
* @param Fluent $command
|
||||
* @return string
|
||||
*/
|
||||
public function drop(Table $table, Fluent $command)
|
||||
{
|
||||
return 'DROP TABLE '.$this->wrap($table);
|
||||
}
|
||||
|
||||
/**
|
||||
* Drop a constraint from the table.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user