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

    <changeset id="NR-1423_replace_account_76120:1" author="npatel" run-always="true">
        <cypherquery>
          <![CDATA[          
            MATCH (c:NrContributor {id: "e73dca85-273b-4981-a6dc-e97d772c5773"})<-[rel_old:HAS_NR_CONTRIBUTOR]-(:Vendor)
            WITH c, rel_old
            MATCH (v_new:Vendor {id:  76120})
            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-1423_replace_account_76120'
            ON MATCH SET
                rel_new.lastModifiedAt = datetime(),
                rel_new.lastModifiedBy = 'database/NR-1423_replace_account_76120'
             return v_new.id
             
          ]]>
        </cypherquery>
    </changeset>

</changelog>
