<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./schema.xsd">
    <changeset id="PLATFORM-4134_fix_impersonated_user:1" author="tnozhkina" run-always="true">
        <cypherquery>
            MATCH (i:Identity {id: '6d20c5f5-9bf1-40ef-a0ae-3a569a3f6736'})-[rels:HAS_PROFILE]->(p:Profile {profileType: 'CollaboratorsProfile'})
            DELETE rels
        </cypherquery>
    </changeset>
    <changeset id="PLATFORM-4134_fix_impersonated_user:2" author="tnozhkina" run-always="true">
        <cypherquery>
            MATCH (i:Identity {id: '6d20c5f5-9bf1-40ef-a0ae-3a569a3f6736'}), (p:Profile {profileType: 'CollaboratorsProfile', profileId: 446915})
            WITH i,p
            MERGE (i)-[:HAS_PROFILE]->(p)
        </cypherquery>
    </changeset>
</changelog>
