

def _rename_index(old_name, new_name):
    return HqRunSQL(sql='ALTER INDEX {} RENAME TO {}'.format(old_name, new_name), reverse_sql='ALTER INDEX {} RENAME TO {}'.format(new_name, old_name))

dataset/ETHPy150Open dimagi/commcare-hq/corehq/form_processor/migrations/0043_rename_to_match.py _rename_index/original