<?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="PLATFORM-Fix_MoneyhubProfile_access_relationships:1" author="jyang" run-on-change="true">
        <cypherquery>
            <![CDATA[
                MATCH (p:Profile{profileType:"MoneyhubProfile"})-[rel:HAS_ADMIN_ACCESS_TO]->(v:Vendor{name:"All Orchard Labels"})
                WHERE NOT (p)-[:DELETED_HAS_ACCESS_TO]->(v)
                    SET rel.updatedBy = 'PLATFORM-Fix_MoneyhubProfile_access_relationships', rel.updatedOn = localdatetime()
                WITH rel
                CALL apoc.refactor.setType(rel, 'HAS_ACCESS_TO')
                YIELD input, output
                RETURN rel
            ]]>
        </cypherquery>
    </changeset>
</changelog>
