<?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="NOTICKET-create-songwhip-profile:1" author="veixar" run-on-change="true">
        <query>
            <![CDATA[
                MATCH (identity:Identity {email: "gmanukyan+awal@theorchard.com"})
                MATCH (v:Vendor {id: 35976})
                MERGE (inc:IncrementId {nodeName: 'Profile'})
                    ON MATCH SET inc.id = inc.id + 1
                MERGE (identity)-[:HAS_PROFILE]->(p:Profile {profileType: "SongwhipProfile"})
                    ON CREATE SET
                        p.uuid = apoc.create.uuid(),
                        p.profileId = (inc.id - 1),
                        p.profileName = "gmanukyan+awal@theorchard.com",
                        p.roles = ["marketing"]
                MERGE (p)-[:HAS_ACCESS_TO]->(v);
            ]]>
        </query>
    </changeset>

</changelog>