<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <changeset id="NR-1315_replace_account:1" author="npatel" run-always="true">
        <cypherquery>
          <![CDATA[          
            MATCH (c:NrContributor {id: "57621331-5605-49d8-89b4-1784fac4b735"})<-[rel_old:HAS_NR_CONTRIBUTOR]-(:Vendor)
            WITH c, rel_old
            MATCH (v_new:Vendor {id:  76121})
            DETACH DELETE rel_old
            MERGE (v_new)-[rel_new:HAS_NR_CONTRIBUTOR]->(c)
            ON CREATE SET
                rel_new.createdAt = datetime(),
                rel_new.lastModifiedAt = datetime(),
                rel_new.lastModifiedBy = 'database/NR-1315_replace_account'
            ON MATCH SET
                rel_new.lastModifiedAt = datetime(),
                rel_new.lastModifiedBy = 'database/NR-1315_replace_account'
             return v_new.id
             
          ]]>
        </cypherquery>
    </changeset>

    <changeset id="NR-1315_replace_account:2" author="npatel" run-always="true">
        <cypherquery>
          <![CDATA[          
            MATCH (c:NrContributor {id: "92914989-ad22-4743-b76f-c4493a90bf7a"})<-[rel_old:HAS_NR_CONTRIBUTOR]-(:Vendor)
            WITH c, rel_old
            MATCH (v_new:Vendor {id:  76197})
            DETACH DELETE rel_old
            MERGE (v_new)-[rel_new:HAS_NR_CONTRIBUTOR]->(c)
            ON CREATE SET
                rel_new.createdAt = datetime(),
                rel_new.lastModifiedAt = datetime(),
                rel_new.lastModifiedBy = 'database/NR-1315_replace_account'
            ON MATCH SET
                rel_new.lastModifiedAt = datetime(),
                rel_new.lastModifiedBy = 'database/NR-1315_replace_account'
             return v_new.id
             
          ]]>
        </cypherquery>
    </changeset>

    <changeset id="NR-1315_replace_account:3" author="npatel" run-always="true">
        <cypherquery>
          <![CDATA[          
            MATCH (c:NrContributor {id: "b11a0141-74b9-447b-878b-6771b9ccc02b"})<-[rel_old:HAS_NR_CONTRIBUTOR]-(:Vendor {id: 68188})
            WITH c, rel_old
            MATCH (v_new:Vendor {id:  76299})
            DETACH DELETE rel_old
            MERGE (v_new)-[rel_new:HAS_NR_CONTRIBUTOR]->(c)
            ON CREATE SET
                rel_new.createdAt = datetime(),
                rel_new.lastModifiedAt = datetime(),
                rel_new.lastModifiedBy = 'database/NR-1315_replace_account'
            ON MATCH SET
                rel_new.lastModifiedAt = datetime(),
                rel_new.lastModifiedBy = 'database/NR-1315_replace_account'
             return v_new.id
             
          ]]>
        </cypherquery>
    </changeset>

</changelog>
