When I add a foreign key constaint on a table, liquibase generates and executes a drop constraint statement before creating the constraint. The liquibase scripts fails when the constaint does not already exist.
Let me know if the tag works. Like I said, I don’t see how the addForeignKeyConstraint tag should be generating teh SQL you are seeing. Converting to sql would show for sure if the drop statement is created by the addFK tag or something else.
The Sql tag did not work. Unfortunately, dropping schema in db2 is not an easy task. My ideal scenario includes recreating a database from scratch. How can I get past this without running into the drop constraint issue.
Can I add a precondition tag around the addForeignKeyConstraint tag ?