<?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-2151_remove_artist_profiles:1" author="npatel" run-on-change="true">
         <query>
           MATCH (i:Identity)-[rel:HAS_PROFILE]->(p:Profile {profileType: "ArtistProfile"}) 
           WHERE p.profileId in [24, 15, 12, 21, 94]
           SET rel.dateDeleted = localdatetime()
            WITH i, rel
                CALL apoc.refactor.setType(rel, 'DELETED_HAS_PROFILE')
                YIELD input, output
            RETURN i
        </query>
    </changeset>

</changelog>
