<?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="Remove label access for Ben:1" author="jyang">
        <query>
            MATCH (i:Identity)-[rel:HAS_PROFILE]->(p:Profile)
            WHERE
                i.id = "10436b38-5e11-472d-b6a4-bf1ee2b1b438" AND
                p.profileType = "LabelProfile" AND
                p.profileId = 77244
            SET rel.dateDeleted = localdatetime()
            WITH i, rel
                CALL apoc.refactor.setType(rel, 'DELETED_HAS_PROFILE')
            YIELD input, output
            RETURN i
        </query>
    </changeset>
</changelog>
