Adding Schema::rename('oldtable','newtable') support

Signed-off-by: Colin Viebrock <colin@viebrock.ca>
This commit is contained in:
Colin Viebrock
2012-04-02 11:30:53 -05:00
parent 2a49787e46
commit 7d4a346f84
5 changed files with 61 additions and 2 deletions

View File

@@ -142,6 +142,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.
*