
liquibase.harness.change.changelogs.db2-luw.addDefaultValueNumeric.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"> <!-- Adding a def. val. to a newly created table because of specific work of dropping columns in db2--> <changeSet author="as" id="1"> <createTable tableName="add_default_value_numeric_test"> <column name="id" type="int"> <constraints primaryKey="true" nullable="false"/> </column> <column name="numeric_test" type="int"/> </createTable> <rollback/> </changeSet> <changeSet author="as" id="2"> <addDefaultValue tableName="add_default_value_numeric_test" columnName="numeric_test" columnDataType="int" defaultValueNumeric="100"/> <rollback> <dropTable tableName="add_default_value_numeric_test"/> </rollback> </changeSet> </databaseChangeLog>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy