Builds and executes a SQL statement for renaming a DB table.
public renameTable ( string $table, string $newName ) | ||
$table | string | the table to be renamed. The name will be properly quoted by the method. |
$newName | string | the new table name. The name will be properly quoted by the method. |
/** * @inheritdoc * Note: table names will be auto pefixied if [[$autoWrapTableNames]] is true. */ public function renameTable($table, $newName) { $table = $this->autoWrappedTableName($table); $newName = $this->autoWrappedTableName($newName); return parent::renameTable($table, $newName); }