'Renames the table \'old_table_name\' to \'table_name\'.'

@invalidate_table_constraints
def rename_table(self, old_table_name, table_name):

    if (old_table_name == table_name):
        return
    params = (self.quote_name(old_table_name), self.quote_name(table_name))
    self.execute((self.rename_table_sql % params))
    self._set_cache(table_name, value=INVALID)
