code: public function renameTable($table, $newName)
      {
          return 'ALTER TABLE ' . $this->db->quoteTableName($table) . ' RENAME TO ' . $this->db->quoteTableName($newName);
      }
docs: Builds a SQL statement for renaming a DB table.
  
  @param string $table the table to be renamed. The name will be properly quoted by the method.
  @param string $newName the new table name. The name will be properly quoted by the method.
  @return string the SQL statement for renaming a DB table.