<?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-2728_add_permissions_for_test_accounts:1" author="amerkulov">
        <neo4j:cypher>
            MATCH (i:Identity)-[:HAS_PROFILE]->(profile:Profile {profileType: "DocumentsProfile"})
            WHERE i.email IN [
                "kkavasi@sonymusic-pde.com",
                "kgoyal@sonymusic-pde.com",
                "charles.owens@sonymusic-pde.com",
                "mbalan@sonymusic-pde.com",
                "viktor.svirskiy.sme@sonymusic-pde.com",
                "junye.zhang@sonymusic-pde.com",
                "jviletto@sonymusic-pde.com",
                "george.theka@sonymusic-pde.com",
                "artem.merkulov.sme@sonymusic-pde.com",
                "sergey.sudakov.sme@sonymusic-pde.com",
                "dmitry.iakunchokov.sme@sonymusic-pde.com"
            ]
            MATCH (vendor:Vendor) WHERE vendor.vendorId IN [
                792950, 792951, 792952, 792953, 792954, 792955, 792956, 792957, 792958, 792959, 792960, 792961,
                35968, 35970, 35971, 35972, 35974, 35975, 35977, 35976, 35978, 35979, 35980, 35981, 73137, 73138,
                73139, 73140, 73141, 73142, 73143, 73144, 73145, 73146, 73147, 73148, 73149, 791158, 791170, 791171,
                73141, 73142, 73143, 73144, 73145, 73148, 73149
            ]
            MERGE (profile)-[:HAS_ACCESS_TO]->(vendor)
            RETURN profile, vendor;
        </neo4j:cypher>
    </changeSet>
</databaseChangeLog>
