Search code examples
liquibase

Liquibase generated diffChangeLog creates constraint before creating column used in the constraint


I'm trying to update an existing DB with changes created by diffChangeLog.

I have added a column to a table, and created a unique constraint using an exsiting column and the new column.

The update fails because the changeLog generated by Liquibase creates the constraint before adding the column.

Is there any way around this besides manually changing the generated changeLog?


Solution

  • I've been able to reproduce the issue. I've filed an issue with Liquibase's github page. Not sure if or when it'll be addressed, but if anyone wants to track the issue, I provided the link.