<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
                   xmlns:neo4j="http://www.liquibase.org/xml/ns/dbchangelog-ext"
                   xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
    <changeSet id="FS-5038_remove_sme_us_latin_rel:1" author="ozhovnuvatyi">
        <neo4j:cypher>
            <![CDATA[
                WITH [
                    '502a10c8-103d-45fd-84bc-aabfcfb963b0',
                    'a46adf9f-ea40-4b5c-af1b-0ee6b0fd9cd6',
                    '3ad19c6b-dc88-4441-817b-c4fcb4533b2a',
                    'dcc6bff3-6a8b-4995-a363-6e690ef143b0',
                    'dd4b5204-4538-403e-a87a-4944b6e52bb5',
                    'cc5b8e0f-67a5-4a12-b7e6-86e54cf7a0f6',
                    'fd7490a0-ea86-4cc1-ba0d-0ca9090ddc1f',
                    '562a1549-13b3-46a9-9d70-cdc21aca6a8d',
                    '9369a27c-5b54-4821-8ea4-847598f7e538',
                    '7f68e4ee-0393-4353-960c-75a2bc91f3ab',
                    'c0899235-6341-4537-90b8-625d0ab3dcf8'
                ] AS identity_ids
                UNWIND identity_ids as identity_id
                WITH identity_id
                MATCH (i:Identity {id: identity_id})-[:HAS_PROFILE]->(profile:Profile {profileType: 'AudienceProfile'})
                MATCH (profile)-[r:HAS_ACCESS_TO]->(v1:Vendor {id: 34590})
                DELETE r
            ]]>
        </neo4j:cypher>
    </changeSet>
</databaseChangeLog>
