Commit 7293c044 authored by Colin Viebrock's avatar Colin Viebrock

One more change (comments may need to be altered)

Signed-off-by: 's avatarColin Viebrock <colin@viebrock.ca>
parent 7d4a346f
......@@ -40,6 +40,25 @@ class Schema {
return static::execute($table);
}
/**
* Rename a database table in the schema.
*
* @param string $table
* @param string $name
* @return void
*/
public static function rename($table, $rename)
{
$table = new Schema\Table($table);
// To indicate that the table needs to be renamed, we will run the
// "rename" command on the table instance and pass the instance to
// the execute method as calling a Closure isn't needed.
$table->rename($name);
return static::execute($table);
}
/**
* Drop a database table from the schema.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment