protected function renameTable($oldname, $newname) {
        $renameSql = 'alter table '.
            $this->backtick($this->px.$oldname).
            ' rename to '.
            $this->backtick($this->px.$newname);
        $this->query($renameSql, Db::QUERY_WRITE);
    }
protected function renameTable($oldname, $newname) {
        $renameSql = 'alter table '.
            $this->backtick($this->px.$oldname).
            ' rename to '.
            $this->backtick($this->px.$newname);
        $this->query($renameSql, Db::QUERY_WRITE);
    }
protected function renameTable ( $ oldname , $ newname ) { $ renameSql = 'alter table ' . $ this -> backtick ( $ this -> px . $ oldname ) . ' rename to ' . $ this -> backtick ( $ this -> px . $ newname ) ; $ this -> query ( $ renameSql , Db :: QUERY_WRITE ) ; }
Rename a table.

@param string $oldname The old name of the table.
@param string $newname The new name of the table.
Rename a table .