﻿<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://www.liquigraph.org/schema/1.0/liquigraph.xsd">

    <changeset id="REVIEW-860:1" author="ingride-n" run-on-change="true">
        <query>
            <![CDATA[
                MATCH
                   (identity:Identity)-[:HAS_PROFILE]->(profile:Profile {profileType: 'ContentProfile'})
                WHERE identity.email in [
                    'mwalker@sonymusic-pde.com', 
                    'tmartino@sonymusic-pde.com', 
                    'tcalhoun@sonymusic-pde.com', 
                    'jchung@sonymusic-pde.com', 
                    'otalaga@sonymusic-pde.com'
                ]
                WITH COLLECT(DISTINCT profile) as profiles
                FOREACH (p in profiles | SET p.roles = p.roles + [
                        'view_orchard_sound_recording', 
                        'manage_nr_repertoire', 
                        'manage_nr_ownership', 
                        'deliver_physical_audio'
                ])
            ]]>
        </query>
    </changeset>

</changelog>
