<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://florent.biville.net/liquigraph/schema/1.0/liquigraph.xsd">
    <changeset id="DOC-217-reset-access:1" author="j0shua">
        <query>
            <![CDATA[
                MATCH (i:Identity)-[:HAS_PROFILE]->(p { profileType: 'DocumentsProfile' })-[rel:DELETED_HAS_ACCESS_TO { updatedBy: i.id }]->(o)
                    SET
                        rel.updatedOn = datetime(),
                        rel.updatedBy = 'database/DOC-217-reset-account:1'
                WITH rel
                    CALL apoc.refactor.setType(rel, 'HAS_ACCESS_TO')
                    YIELD input, output
                    RETURN true
            ]]>
        </query>
    </changeset>
</changelog>
