<?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="ACC-7550_remove_users_from_abacus:1" author="jraysor" run-on-change="true">
        <query>
            MATCH (i:Identity)-[rel:HAS_PROFILE]->(p:Profile {profileType: "AbacusProfile"}) 
            WHERE p.profileId IN [
                348371,
                386846
            ] SET rel.dateDeleted = localdatetime()
            WITH i, rel
                CALL apoc.refactor.setType(rel, 'DELETED_HAS_PROFILE')
                YIELD input, output
            RETURN i;
        </query>
    </changeset>
</changelog>
