<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <changeset id="PUB-767_publisherid_to_integer:1" author="jmarais" run-always="true">
        <cypherquery>
            <![CDATA[
                MATCH (p:PublishingPublisher)
                WHERE apoc.meta.cypher.type(p.pubPublisherID) = "FLOAT"
                SET p.pubPublisherID = toInteger(p.pubPublisherID)
                RETURN count(p.pubPublisherID)
            ]]>
        </cypherquery>
    </changeset>

    <changeset id="PUB-767_publisherid_to_integer:2" author="jmarais" run-always="true">
        <cypherquery>
            <![CDATA[
                MATCH (a:PublishingAgreement)
                WHERE apoc.meta.cypher.type(a.pubPublisherID) = "FLOAT"
                SET a.pubPublisherID = toInteger(a.pubPublisherID)
                RETURN count(a.pubPublisherID)
            ]]>
        </cypherquery>
    </changeset>
</changelog>
