<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./schema.xsd">
    <changeset id="PLATFORM-4242_restore_infosec_users:1" author="tnozhkina" run-always="true">
        <cypherquery>
            MATCH (i:Identity {email:'test_infosecuser1@sonymusic.com'})-[:HAS_PROFILE]->(p:Profile)
            DETACH DELETE p
        </cypherquery>
    </changeset>
    <changeset id="PLATFORM-4242_restore_infosec_users:2" author="tnozhkina" run-always="true">
        <cypherquery>
            MATCH (i:Identity {email:'test_infosecuser1@sonymusic.com'}),(v:Vendor {id: '*'})
            MERGE (i)-[:HAS_PROFILE]->(p:Profile {profileType: 'MoneyhubProfile'})
            ON CREATE SET
                p.profileId = 10001235,
                p.fullCatalogAccess = true,
                p.profileName = 'test_infosecuser1 MoneyhubProfile',
                p.roles = ['accounting'],
                p.brand = 'awal',
                p.uuid = apoc.create.uuid()
            MERGE (p)-[:HAS_ACCESS_TO]->(v);
        </cypherquery>
    </changeset>
    <changeset id="PLATFORM-4242_restore_infosec_users:3" author="tnozhkina" run-always="true">
        <cypherquery>
            MATCH (i:Identity {email:'test_infosecuser1@sonymusic.com'}),(v:Vendor {id: '*'})
            MERGE (i)-[:HAS_PROFILE]->(p:Profile {profileType: 'OrchAdminProfile'})
            ON CREATE SET
                p.profileId = 1999599,
                p.fullCatalogAccess = true,
                p.profileName = 'Test Infosecuser1',
                p.roles = [],
                p.brand = 'sme',
                p.uuid = apoc.create.uuid()
            MERGE (p)-[:HAS_ACCESS_TO]->(v);
        </cypherquery>
    </changeset>
    <changeset id="PLATFORM-4242_restore_infosec_users:4" author="tnozhkina" run-always="true">
        <cypherquery>
            MATCH (i:Identity {email:'test_infosecuser2@sonymusic.com'})-[:HAS_PROFILE]->(p:Profile)
            DETACH DELETE p
        </cypherquery>
    </changeset>
    <changeset id="PLATFORM-4242_restore_infosec_users:5" author="tnozhkina" run-always="true">
        <cypherquery>
            MATCH (i:Identity {email:'test_infosecuser2@sonymusic.com'}),(v:Vendor {id: 7123})
            MERGE (i)-[:HAS_PROFILE]->(p:Profile {profileType: 'LabelProfile'})
            ON CREATE SET
                p.profileId = 295099599,
                p.profileName = 'Test Infosecuser2',
                p.roles = ['administrator'],
                p.brand = 'orchard',
                p.uuid = apoc.create.uuid()
            MERGE (p)-[:HAS_ACCESS_TO]->(v);
        </cypherquery>
    </changeset>
</changelog>
