<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <changeset id="PUB-XX_yostapyuk_distribution_profile:1" author="yostapyuk">
        <query>
            <![CDATA[
                MATCH (identity:Identity {email: 'yostapyuk@theorchard.com'})
                MATCH (increment:IncrementId {nodeName: 'Profile'})
                    SET increment.id = increment.id + 1
                CREATE (profile:Profile {
                    profileId: (increment.id-1),
                    profileType: 'DistributionProfile',
                    profileName: 'Yury Ostapyuk',
                    uuid: apoc.create.uuid(),
                    roles: ['manage_nr_deliveries'],
                    fullCatalogAccess: true
                })
                MERGE (identity)-[:HAS_PROFILE]->(profile)
            ]]>
        </query>
    </changeset>
</changelog>
