This is what I have
--preconditions onFail:CONTINUE
--preconditions not tableExists tableName:QRTZ_CALENDARS schemaName:dbo
CREATE TABLE dbo.QRTZ_CALENDARS (
SCHED_NAME VARCHAR (120) NOT NULL ,
CALENDAR_NAME VARCHAR (200) NOT NULL ,
CALENDAR IMAGE NOT NULL
)
GO
Background. I'm using liquibase to setup a h2 database for test cases in java.
Add a pre-Condition to your changeset for example:
<preConditions onFail="MARK_RAN">
<not>
<tableExists tableName="Table_name"/>
</not>
</preConditions>
<createTable tableName="Table_name" >
<column name="column1" type="NUMBER(20,0)"/>
</createTable>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With