Merge pull request #480 from cviebrock/schema-rename

Schema::rename('oldtable','newtable') support
This commit is contained in:
Taylor Otwell
2012-07-19 13:42:34 -07:00
6 changed files with 80 additions and 2 deletions

View File

@@ -144,6 +144,17 @@ class Table {
return $this->command($type, compact('name', 'columns'));
}
/**
* Rename the database table.
*
* @param string $name
* @return Fluent
*/
public function rename($name)
{
return $this->command(__FUNCTION__, compact('name'));
}
/**
* Drop the database table.
*