Merge pull request #480 from cviebrock/schema-rename
Schema::rename('oldtable','newtable') support
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user