<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
    xmlns:neo4j="http://www.liquibase.org/xml/ns/dbchangelog-ext"
    xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd"
>
    <changeSet id="AS-3836-remove-non-activated-collabs-banking-access:1" author="tmartin">
        <neo4j:cypher>
            <![CDATA[
                MATCH (v:Vendor)-[:OWNS]-(c:Collaborator)-[:HAS_ACCESS_TO]-(p:Profile)-[:HAS_PROFILE]-(i:Identity)
                WHERE p.profileType = 'DocumentsProfile'
                AND v.vendorId in [77270, 78608, 25153, 788286]
                DETACH DELETE p
                RETURN *
            ]]>
        </neo4j:cypher>
    </changeSet>
</databaseChangeLog>
