<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.liquigraph.org/schema/1.0/liquigraph.xsd">
    <changeset id="ARTARCH_fix_duplicate_vendor:1" author="gaguirre" run-on-change="true">
        <query>
            <![CDATA[
                MATCH(dup:Vendor {uuid: "632a44d6-7aa0-4cd9-8cc8-773cf4c8569f"})<-[hat:HAS_ACCESS_TO]-(p:Profile {profileId: 95915})
                MATCH(source:Vendor {uuid: "ee32acb9-fe19-4bd3-b476-2884634db97c"})
                CREATE (source)<-[hatNew:HAS_ACCESS_TO]-(p)
                SET hatNew = hat
                DELETE hat
            ]]>
        </query>
    </changeset>
    <changeset id="ARTARCH_fix_duplicate_vendor:2" author="gaguirre" run-on-change="true">
        <query>
            <![CDATA[
                MATCH(dup:Vendor {uuid: "632a44d6-7aa0-4cd9-8cc8-773cf4c8569f"})<-[hf:HAS_FOLLOWED]-(p:Profile {profileId: 95915})
                MATCH(source:Vendor {uuid: "ee32acb9-fe19-4bd3-b476-2884634db97c"})
                CREATE (source)<-[hfNew:HAS_FOLLOWED]-(p)
                SET hfNew = hf
                DELETE hf
            ]]>
        </query>
    </changeset>
    <changeset id="ARTARCH_fix_duplicate_vendor:3" author="gaguirre" run-on-change="true">
        <query>
            <![CDATA[
                MATCH(dup:Vendor {uuid: "632a44d6-7aa0-4cd9-8cc8-773cf4c8569f"})
                DETACH DELETE dup
            ]]>
        </query>
    </changeset>
</changelog>
