<?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="DOC-459-fix-access:1" author="j0shua" run-on-change="true">
        <query>
            <![CDATA[
                MATCH (i:Identity {id: "fa3fb21c-55e8-4f2c-b8f6-ca9828cc1d08"})-[:HAS_PROFILE]
                    ->(p:Profile {profileType: "DocumentsProfile"})-[hat:DELETED_HAS_ACCESS_TO]->(v:Vendor {id: "*"})
                SET
                    p.fullCatalogAccess = true,
                    p.updatedOn = datetime(),
                    p.updatedBy = 'database/DOC-459-fix-access',

                    hat.updatedOn = datetime(),
                    hat.updatedBy = 'database/DOC-459-fix-access'
                REMOVE hat.dateDeleted

                WITH hat
                    CALL apoc.refactor.setType(hat, 'HAS_ACCESS_TO')
                    YIELD input, output
                    RETURN input, output
            ]]>
        </query>
    </changeset>
</changelog>
