(db, index_name)
Drop the index if it exists
Drop the index if it exists
Drop the index if it exists
def _drop_index(db, index_name):
    """Drop the index if it exists"""
    drop_identifier_index = """
            DROP INDEX CONCURRENTLY IF EXISTS {index_name}
        """.format(index_name=index_name)
    with CommCareCaseIndexSQL.get_cursor_for_partition_db(db) as cursor:
        log_sql(drop_identifier_index)
        cursor.execute(drop_identifier_index)
def _drop_index ( db , index_name ) : drop_identifier_index = """
            DROP INDEX CONCURRENTLY IF EXISTS {index_name}
        """ . format ( index_name = index_name ) with CommCareCaseIndexSQL . get_cursor_for_partition_db ( db ) as cursor : log_sql ( drop_identifier_index ) cursor . execute ( drop_identifier_index )