<?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"
        xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd">

    <changeSet author="aramos" id="minion_version">
        <preConditions onFail="MARK_RAN">
            <tableExists tableName="monitoringsystems"/>
            <not>
                <columnExists tableName="monitoringsystems" columnName="version"/>
            </not>
        </preConditions>
        <addColumn tableName="monitoringsystems">
            <column name="version" type="text">
                <constraints nullable="true"/>
            </column>
        </addColumn>

        <rollback>
            <dropColumn tableName="monitoringsystems" columnName="version"/>
        </rollback>
    </changeSet>

</databaseChangeLog>
