Model::alterRenameTo
Execute Alter Rename
Description
public void Model::alterRenameTo( string $rename )
Arguments
Name | Data type | Default | Remarks |
---|---|---|---|
$rename | string | Rename to table name |
Example
Controller
$model = new Model(true, array(
'table' => 'cms_news',
));
// ALTER TABLE cms_news TO cms_news_ex
$model->alterRenameTo('cms_news_ex');