def METHOD_NAME():
    # Rename primary keys.
    for _, names in PRIMARY_KEYS_MAP.items():
        op.execute('ALTER INDEX {} RENAME TO {}'.format(names['new'], names['old']))
    # Rename indexes.
    for _, names_list in INDEXES_MAP.items():
        for names in names_list:
            op.execute('ALTER INDEX IF EXISTS {} RENAME TO {}'.format(names['new'], names['old']))
    # Remove indexes
    op.execute("DROP INDEX json_ids_index")
    op.execute("DROP INDEX json_export_to_index")
    op.execute("DROP INDEX _collections")
    op.execute("DROP INDEX journal_title")