<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.liquigraph.org/schema/1.0/liquigraph.xsd">
    <changeset id="DOC-279-remove-documents-access:1" author="j0shua" run-on-change="true">
        <query>
            <![CDATA[
                MATCH (v:Vendor {id: 72469})<-[rel:HAS_ACCESS_TO]-(p:Profile {profileType: "DocumentsProfile" })
                SET rel.dateDeleted = localdatetime()
                WITH rel
                    CALL apoc.refactor.setType(rel, 'DELETED_HAS_ACCESS_TO')
                    YIELD input, output
                    RETURN input, output
            ]]>
        </query>
    </changeset>
    <changeset id="DOC-279-remove-documents-access:2" author="j0shua" run-on-change="true">
        <query>
            <![CDATA[
                UNWIND[
                    {    accountPayee: {      accountPayeeId: 66398    },    timestamp: "2022-12-12T16:00:32Z"  }
                ]AS payload

                CALL streams.publish(
                    'graphql.subscription.abacusAccountPayeePayoneerStatusUpdated',
                    payload
                )

                CALL streams.publish(
                    'graphql.subscription.abacusAccountPayeePayoneerWFormCollected',
                    payload
                )
                RETURN true
            ]]>
        </query>
    </changeset>
</changelog>
