All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.harness.change.changelogs.sqlite.addDefaultValueBoolean.xml Maven / Gradle / Ivy

The newest version!
<?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-latest.xsd">
<!--https://docs.liquibase.com/change-types/add-default-value.html-->
        <changeSet author="as" id="1">
            <createTable tableName="add_default_value_boolean_test">
                <column name="intColumn" type="int">
                    <constraints primaryKey="true" nullable="false"/>
                </column>
                <column name="booleanColumn" type="boolean"/>
            </createTable>
            <rollback>
                <dropTable tableName="add_default_value_boolean_test"/>
            </rollback>
        </changeSet>
        <changeSet author="as" id="2">
            <addDefaultValue  tableName="add_default_value_boolean_test"
                              columnName="booleanColumn"
                              columnDataType="boolean"
                              defaultValue="true"/>
            <rollback/>
        </changeSet>
</databaseChangeLog>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy