<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:/var/app/InputFileSchema.xsd">
    <changeset id="NR-3077_backfill_contribution_evidence_field:1" author="gmaroulis" neo4j-server="nr-graph" run-always="false">
        <precondition>
            <sqlquery>
                <![CDATA[
                    SELECT contribution.CONTRIBUTION_ID, contribution.EVIDENCE_LINK
                    FROM DEV_ENGINEERING.GMAROULIS.NR_EVIDENCE_PRIORITY_JAN_2025 as contribution
                ]]>
            </sqlquery>
        </precondition>
        <cypherquery>
            <![CDATA[
                MATCH (contribution:NrContribution {id: event.CONTRIBUTION_ID})
                SET
                    contribution.evidence = event.EVIDENCE_LINK,
                    contribution.lastModifiedAt = datetime(),
                    contribution.lastModifiedBy = 'database/NR-3077_backfill_contribution_evidence_field.xml'
            ]]>
        </cypherquery>
    </changeset>
</changelog>
