<?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-2487_grant_documents_access:1" author="mbalan">
        <neo4j:cypher>
            MATCH (i:Identity {id: '961e52ab-eb81-43a6-bcc6-2ba0e6a3716b'})-[:HAS_PROFILE]->(profile:Profile {profileType: 'DocumentsProfile'})
            MATCH (vendor:Vendor) WHERE vendor.vendorId IN [
                793390, 793396, 793355, 793356, 793351, 793436, 67452,
                69118, 75848, 793356, 75838, 68747, 67198, 66998, 67868
            ]
            MERGE (profile)-[:HAS_ACCESS_TO]->(vendor)
            RETURN profile, vendor;
        </neo4j:cypher>
    </changeSet>
</databaseChangeLog>
