<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-3.1.xsd">
    <changeSet id="schema34_001" author="muff1nman">
        <preConditions onFail="MARK_RAN">
            <sqlCheck expectedResult="0">select count(*) from version where version = 10</sqlCheck>
        </preConditions>
        <insert tableName="version">
            <column name="version" valueNumeric="10" />
        </insert>
        <rollback>
            <delete tableName="version" >
                <where>version = 10</where>
            </delete>
        </rollback>
    </changeSet>
    <changeSet id="schema34_002" author="muff1nman">
        <preConditions onFail="MARK_RAN">
            <not>
                <columnExists tableName="user" columnName="ldap_authenticated" />
            </not>
        </preConditions>
        <addColumn tableName="user">
            <column name="ldap_authenticated" type="boolean" defaultValueBoolean="false">
                <constraints nullable="false" />
            </column>
        </addColumn>
    </changeSet>
    <changeSet id="schema34_003" author="muff1nman">
        <preConditions onFail="MARK_RAN">
            <not>
                <columnExists tableName="user_settings" columnName="party_mode_enabled" />
            </not>
        </preConditions>
        <addColumn tableName="user_settings">
            <column name="party_mode_enabled" type="boolean" defaultValueBoolean="false">
                <constraints nullable="false" />
            </column>
        </addColumn>
    </changeSet>
</databaseChangeLog>
