<?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="TAP-3563_grant_documents_access_knr:1" author="mbalan">
        <neo4j:cypher>
            MATCH (n:Identity {email:'kgoyal@sonymusic-pde.com'})-[:HAS_PROFILE]->(profile:Profile { profileType:'DocumentsProfile' })
            MATCH (vendor:Vendor) WHERE vendor.vendorId IN [ 67367, 68909, 68794 ]
            MERGE (profile)-[:HAS_ACCESS_TO]->(vendor)
            RETURN profile, vendor;
        </neo4j:cypher>
    </changeSet>
</databaseChangeLog>
