<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  
    <changeset id="NR-1043_add_content_profile_ariel_ramchand:1" author="npatel">
        <cypherquery>
            MATCH (identity:Identity {email: 'ariel.ramchand@kollectivenr.com'})
            MERGE (increment:IncrementId {nodeName: 'Profile'})
                ON CREATE SET increment.id = 2
                ON MATCH SET increment.id = increment.id + 1
            CREATE (profile:Profile {
                profileId: (increment.id-1),
                profileType: 'ContentProfile',
                profileName: 'Ariel ContentProfile',
                uuid: apoc.create.uuid(),
                roles: ['manage_nr_repertoire'],
                fullCatalogAccess: true
            })
            MERGE (identity)-[:HAS_PROFILE]->(profile)
            WITH profile
            MATCH (v:Vendor {id: '*'})
            MERGE (profile)-[:HAS_ACCESS_TO]->(v)
            RETURN profile.profileId
        </cypherquery>
    </changeset>
  
</changelog>
