<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
  xmlns:neo4j="http://www.liquibase.org/xml/ns/dbchangelog-ext" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
  <changeSet id="ACC-9053_remove_users_from_abacus:1" author="aajay">
    <neo4j:cypher>
      <![CDATA[
                MATCH (i:Identity)-[rel:HAS_PROFILE]->(p:Profile {profileType: "AbacusProfile"})
                WHERE p.profileId IN ['3bb051db-10e4-43ba-bde6-e78942dbb305', 'e2b00787-34eb-4ba7-92d7-6e8913fbaea2', 'f124555a-f2c1-40c0-9a3b-0c23d8d73c99']
                SET rel.dateDeleted = localdatetime()
                WITH i, rel
                CALL apoc.refactor.setType(rel, 'DELETED_HAS_PROFILE')
                YIELD input, output
                RETURN i;
            ]]>
    </neo4j:cypher>
  </changeSet>
</databaseChangeLog>
