<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://www.liquigraph.org/schema/1.0/liquigraph.xsd">
    <changeset id="AS-2402-collab_resource_access:1" author="gmaroulis" run-on-change="true">
        <query>
            MATCH(c:Collaborator)
            WHERE c.id IN [148, 1213, 1221, 10223]
            MATCH(i:Identity)--(p:Profile{ profileType: 'MoneyhubProfile' })
            WHERE i.email IN ['gmaroulis@theorchard.com', 'jviletto@theorchard.com', 'anorton@theorchard.com', 'jbrooks@theorchard.com', 'oyatsuk@theorchard.com']
            MERGE(p)-[:HAS_ACCESS_TO]->(c)
            WITH *
            OPTIONAL MATCH (i)--(p)-[d:DELETED_HAS_ACCESS_TO]-(c)
            DELETE d
        </query>
    </changeset>
</changelog>
