<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <changeset id="NR-2352_realign:1" author="rshield" run-always="true">
        <cypherquery>
            <![CDATA[
                UNWIND [
                    "f24db5b2-6489-4319-8b06-de1ebb956888",
                    "1c28210c-cad0-43ce-948a-89bd35f7893d"
                ] as contributorId
                MATCH (v:Vendor)-[r:HAS_NR_CONTRIBUTOR]->(c:NrContributor {id: contributorId})
                DELETE r
            ]]>
        </cypherquery>
    </changeset>
    <changeset id="NR-2352_realign:2" author="rshield" run-always="true">
        <cypherquery>
            <![CDATA[
                UNWIND [
                    "f24db5b2-6489-4319-8b06-de1ebb956888",
                    "1c28210c-cad0-43ce-948a-89bd35f7893d"
                ] as contributorId
                MATCH (v:Vendor {vendorId: 781549})
                MATCH(c:NrContributor {id: contributorId})
                WITH v, c
                MERGE (v)-[r:HAS_NR_CONTRIBUTOR]-(c)
                ON CREATE SET r.createdAt = datetime(), r.createdBy = 'NR-2352_align' 
            ]]>
        </cypherquery>
    </changeset>
</changelog>
