<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <changeset id="NR-1070_add_vendor_contributor_relationship:1" author="npatel" run-always="true">
        <cypherquery>
          <![CDATA[          
             UNWIND[
                {vendorId: 74248, cId: "15dba017-435b-4a07-86d7-e3a8ba55a465"},
                {vendorId: 74250, cId: "60d826ec-8256-45ab-b7f5-c2f424b51ea9"}
            ] AS additions
            
                MATCH (v:Vendor {vendorId: additions.vendorId})
                MATCH (c:NrContributor {id: additions.cId})
                WITH v, c
                MERGE (v)-[r:HAS_NR_CONTRIBUTOR]->(c)
                ON CREATE SET
                    r.createdAt = datetime(),
                    r.lastModifiedAt = datetime(),
                    r.lastModifiedBy = 'database/NR-1070_add_vendor_contributor_relationship'
                ON MATCH SET
                    r.lastModifiedAt = datetime(),
                    r.lastModifiedBy = 'database/NR-1070_add_vendor_contributor_relationship'
          ]]>
        </cypherquery>
    </changeset>

</changelog>
