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

    <changeset id="PLATFORM-2259_lowercase_emails-try5:1" author="npatel">
         <query>
            <![CDATA[
                MATCH (n:Identity)-[:HAS_PROFILE]-(p:Profile) 
                WHERE n.email  = 'KBensadon@theorchard.com'
                DETACH DELETE p,n;               
            ]]>
        </query>
         <query>
            <![CDATA[
                MATCH (n:Identity)-[:HAS_PROFILE]-(p:Profile) 
                WHERE n.email  = 'ANorverto@theorchard.com'
                DETACH DELETE p,n;
            ]]>
        </query>
         <query>
            <![CDATA[
                MATCH (n:Identity)
                WHERE n.email  = 'bhavin.shah@mslab.smehost.net'
                DETACH DELETE n;
            ]]>
        </query>
         <query>
            <![CDATA[
                MATCH (n:Identity) 
                WHERE n.email <> toLower(n.email) 
                SET n.email =  toLower(n.email)
                RETURN n;
            ]]>
        </query>
    </changeset>

</changelog>
