<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://www.liquigraph.org/schema/1.0/liquigraph.xsd">
    <changeset id="PUB-201_has_agreement_defaults:1" author="yostapyuk">
        <query>
            MATCH (:PublishingComposition)-[ha:HAS_AGREEMENT]->(:PublishingAgreement)
            WHERE ha.containsSample is null OR ha.containsPublicDomain is null
            SET
                ha.containsSample = CASE WHEN ha.containsSample is null THEN false ELSE ha.containsSample END,
                ha.containsPublicDomain = CASE WHEN ha.containsPublicDomain is null THEN false ELSE ha.containsPublicDomain END
        </query>
    </changeset>
</changelog>
