
liquibase.harness.generateChangelog.expectedChangeLog.derby.addUniqueConstraint.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"> <changeSet id="1" author="as"> <createTable tableName="test_table"> <column name="id" type="INT"> <constraints nullable="false" primaryKey="true"/> </column> <column name="test_column" type="VARCHAR(100)"> <constraints nullable="false"/> </column> </createTable> <rollback> <dropTable tableName="test_table"/> </rollback> </changeSet> <changeSet id="3" author="as"> <createIndex tableName="test_table" indexName="test_table_index"> <column name="test_column"/> </createIndex> </changeSet> <changeSet author="as" id="2"> <addUniqueConstraint columnNames="test_column" constraintName="SOME_CONST" deferrable="false" initiallyDeferred="false" tableName="test_table" validate="true"/> </changeSet> </databaseChangeLog>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy