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

liquibase.harness.change.changelogs.postgresql.addNotNullConstraintWithValues.xml Maven / Gradle / Ivy

There is a newer version: 1.0.10
Show newest version
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<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-4.4.xsd">

    <changeSet author="Liquibase User" id="1::createTable">
        <createTable tableName="lb45">
            <column name="name" type="CHAR(20)"/>
        </createTable>
    </changeSet>

    <changeSet author="liquibase-docs" id="1::insertData">
        <insert tableName="lb45">
            <column name="name" value="marcel"/>
        </insert>
        <rollback/>
    </changeSet>

    <changeSet author="Liquibase User" id="2::addColumn">
        <addColumn tableName="lb45">
            <column name="columnWithInitialValue" type="int8" valueNumeric="0">
                <constraints nullable="false"/>
            </column>
        </addColumn>
    </changeSet>

    <changeSet author="Liquibase User" id="3::addColumnAndAddNotNullConstraint">
        <addColumn tableName="lb45">
            <column name="columnWithConstraintInSeparateChange" type="int8" valueNumeric="0"/>
        </addColumn>
        <addNotNullConstraint tableName="lb45" columnName="columnWithConstraintInSeparateChange"/>
    </changeSet>

</databaseChangeLog>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy