<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./schema.xsd"> 
    <changeset id="PLATFORM-3394_Fix_d3_subaccount_user_access_neo4j:1" author="jyang" run-always="true">
        <cypherquery>
            <![CDATA[
                MATCH (i:Identity {id: "4d11fd92-1bc4-4ce7-95fb-9f26c4279fe9"})-[:HAS_PROFILE]->(p:Profile {profileType: "LabelProfile"})-[:HAS_ACCESS_TO]->(v:Vendor)-[:OWNS]->(s:Subaccount)
                WHERE (p)-[:HAS_ACCESS_TO]->(s)
                DETACH DELETE p
            ]]>
        </cypherquery>
    </changeset>
</changelog>