Fixing bugs.

This commit is contained in:
Taylor Otwell
2012-04-20 11:35:47 -05:00
parent 98ea9ac41f
commit a92ab1ca30
5 changed files with 42 additions and 24 deletions

View File

@@ -44,12 +44,15 @@ class Schema {
* Drop a database table from the schema.
*
* @param string $table
* @param string $connection
* @return void
*/
public static function drop($table)
public static function drop($table, $connection = null)
{
$table = new Schema\Table($table);
$table->on($connection);
// To indicate that the table needs to be dropped, we will run the
// "drop" command on the table instance and pass the instance to
// the execute method as calling a Closure isn't needed.