<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <changeset id="PUB-NO-TICKET_access_request:1" author="jmarais" run-always="true">
        <cypherquery>
            <![CDATA[
                MATCH (identity:Identity {id: 'c27d8eaa-91f0-4829-8894-d648ee7a16e1'})
                MERGE (increment:IncrementId {nodeName: 'Profile'})
                    ON MATCH SET increment.id = increment.id + 1
                CREATE (profile:Profile {
                    profileId: (increment.id-1),
                    profileType: 'PublishingProfile',
                    profileName: 'alberto.montoya@sonymusic-pde.com',
                    roles: ['admin'],
                    fullCatalogAccess: true,
                    uuid: apoc.create.uuid()
                })
                MERGE (identity)-[:HAS_PROFILE]->(profile)
                WITH profile
                MATCH (v:Vendor {id: "*"})
                MERGE (profile)-[:HAS_ACCESS_TO]->(v)
                RETURN profile
            ]]>
        </cypherquery>
    </changeset>

        <changeset id="PUB-NO-TICKET_access_request:2" author="jmarais" run-always="true">
        <cypherquery>
            <![CDATA[
                MATCH (identity:Identity {id: '05e572f0-83c9-4885-8274-e766b99d158e'})
                MERGE (increment:IncrementId {nodeName: 'Profile'})
                    ON MATCH SET increment.id = increment.id + 1
                CREATE (profile:Profile {
                    profileId: (increment.id-1),
                    profileType: 'PublishingProfile',
                    profileName: 'jorge.bertran@sonymusic-pde.com',
                    roles: ['admin'],
                    fullCatalogAccess: true,
                    uuid: apoc.create.uuid()
                })
                MERGE (identity)-[:HAS_PROFILE]->(profile)
                WITH profile
                MATCH (v:Vendor {id: "*"})
                MERGE (profile)-[:HAS_ACCESS_TO]->(v)
                RETURN profile
            ]]>
        </cypherquery>
    </changeset>
</changelog>
