<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <changeset id="NR-1497_add_contribution_contributor_relationship:1" author="yostapyuk" run-always="true">
        <cypherquery>
          <![CDATA[
                MATCH (cn:NrContribution:NrPerformance {id: "a3c74306-c016-429c-a336-ec8f7328f253"})
                MATCH (cr:NrContributor:NrPerformance {id: "3855b7cc-6788-499a-9a7e-6e7a261ae5e8"})
                WITH cn, cr
                MERGE (cr)-[r:IS_SESSION_MUSICIAN]->(cn)
                ON CREATE SET
                    r.createdAt = datetime(),
                    r.lastModifiedAt = datetime(),
                    r.lastModifiedBy = 'database/NR-1497_add_contribution_contributor_relationship'
                ON MATCH SET
                    r.lastModifiedAt = datetime(),
                    r.lastModifiedBy = 'database/NR-1497_add_contribution_contributor_relationship'
          ]]>
        </cypherquery>
    </changeset>
    
    <changeset id="NR-1497_add_contribution_contributor_relationship:2" author="yostapyuk" run-always="true">
        <cypherquery>
          <![CDATA[
                MATCH (cn:NrContribution:NrPerformance {id: "41e11516-7d62-47c7-90ce-36363758cdfc"})
                MATCH (cr:NrContributor:NrPerformance {id: "3855b7cc-6788-499a-9a7e-6e7a261ae5e8"})
                WITH cn, cr
                MERGE (cr)-[r:IS_SESSION_MUSICIAN]->(cn)
                ON CREATE SET
                    r.createdAt = datetime(),
                    r.lastModifiedAt = datetime(),
                    r.lastModifiedBy = 'database/NR-1497_add_contribution_contributor_relationship'
                ON MATCH SET
                    r.lastModifiedAt = datetime(),
                    r.lastModifiedBy = 'database/NR-1497_add_contribution_contributor_relationship'
          ]]>
        </cypherquery>
    </changeset>

</changelog>
