<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://www.liquigraph.org/schema/1.0/liquigraph.xsd">
    <changeset id="AS-NOTICKET-merge_duplicates_prod_test:1" author="jbrooks" run-on-change="true">
        <query>
            <![CDATA[
                MATCH (i:Identity)-[:HAS_PROFILE]->(p:Profile{profileType: 'CollaboratorsProfile'})
                WITH i, count(p) AS profileCount, collect(p) AS profiles
                WHERE profileCount > 1 AND (i.id = '1d7d03c1-c444-4169-aa37-4f2c0088d883' OR i.id = '54370b7a-b53f-4a08-93a3-eb96b4ffb6c7')
                CALL apoc.refactor.mergeNodes(profiles, {properties: 'discard', mergeRels: true })
                YIELD node
                RETURN 0
            ]]>
        </query>
    </changeset>
</changelog>
