<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
        xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:cm="http://www.liquibase.org/xml/ns/dbchangelog-ext"
        xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd
    http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">

    <changeSet author="pschweizer" id="1.0-register-schema-provisiond">
        <cm:registerSchema id="provisiond"/>
        <cm:importSchemaFromXsd id="provisiond" xsdFileName="provisiond-configuration.xsd" xsdFileHash="8a501f54269c52b7ba5c49d89a99b5967c33acfab3d953444828fa47d76dfbab" rootElement="provisiond-configuration"/>
        <cm:importConfig schemaId="provisiond" filePath="provisiond-configuration.xml"/>
    </changeSet>

    <changeSet author="pschweizer" id="register-schema-datachoices">
        <cm:registerSchema id="org.opennms.features.datachoices"/>
        <cm:changeSchema schemaId="org.opennms.features.datachoices">
            <cm:put name="enabled" type="boolean"/>
            <cm:put name="acknowledged-by" type="string"/>
            <cm:put name="acknowledged-at" type="string"/>
            <cm:put name="url" type="string" default="http://stats.opennms.org/datachoices/"/>
            <cm:put name="interval" type="number" default="86400000"/> <!-- 24 hours -->
            <cm:put name="useSystemProxy" type="boolean" default="false"/>
            <cm:put name="systemid" type="string" />
        </cm:changeSchema>
        <cm:importConfig schemaId="org.opennms.features.datachoices" filePath="org.opennms.features.datachoices.cfg"/>
    </changeSet>
</databaseChangeLog>
