liquibase.harness.change.changelogs.addAutoIncrement.xml Maven / Gradle / Ivy
<?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-3.8.xsd"> <changeSet id="1" author="as"> <createTable tableName="autoincrement_test"> <column name="intColumn" type="int"> <constraints primaryKey="true" nullable="false"/> </column> <column name="dateColumn" type="date"/> </createTable> <rollback> <dropTable tableName="autoincrement_test"/> </rollback> </changeSet> <changeSet id="2" author="as"> <addAutoIncrement columnDataType="int" columnName="intColumn" generationType="ALWAYS" incrementBy="1" startWith="100" tableName="autoincrement_test"/> <rollback/> </changeSet> </databaseChangeLog>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy