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

liquibase.harness.generateChangelog.expectedChangeLog.db2-luw.addCheckConstraint.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
        xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
        xmlns:pro="http://www.liquibase.org/xml/ns/pro"
        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">
    <changeSet id="1" author="as">
        <createTable tableName="test_table">
            <column name="id" type="INT">
                <constraints primaryKey="true"/>
            </column>
        </createTable>
        <rollback>
            <dropTable tableName="test_table"/>
        </rollback>
    </changeSet>
    <changeSet  id="2" author="as">
        <pro:addCheckConstraint constraintName="test_check_constraint"
                                disabled="false"
                                tableName="test_table"
                                validate="true">id > 0</pro:addCheckConstraint>
    </changeSet>
</databaseChangeLog>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy