<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <changeset id="NR-1563_add_content_profile_and_roles:1" author="yostapyuk" run-on-change="true">
        <cypherquery>
            MATCH (identity:Identity {id: '5f3ebe76-7347-4b1d-9699-3af7b1ddd6e0'})
            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: 'Staci Phillips',
                uuid: apoc.create.uuid(),
                roles: ['manage_nr_repertoire'],
                fullCatalogAccess: true
            })
            MERGE (identity)-[:HAS_PROFILE]->(profile)
        </cypherquery>
    </changeset>
</changelog>
