-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
diff changelog is removing unique constraint since 4.21.0 (hibernate6 + postgresql) #479
Comments
Same here. It looks like it won't handle any DDL operations related to unique constraint now. |
It is linked to #436. |
So @fleboulch - #436 says that it dropped and recreated the constraints. So now it is just dropping... |
Hello @amazing4u @javaboy79 - would you be able to test if it works using the jars from https://github.com/liquibase/liquibase-hibernate/actions/runs/4756616505?pr=480 ? |
@filipelautert I had issues with constraints being dropped on 4.21.0 as well, a few of the drop issues are gone with the new jar, but it is still dropping a few.
|
Nice catch @wslaghekke ! As I don't have it setup yet, I created a simple fix and built it: https://github.com/liquibase/liquibase-hibernate/actions/runs/4756901871?pr=480 . Could you help to test again? If it works I'll think of a more elegant solution then just adding 4 random chars to the idx name. |
@filipelautert I've just tested that version and my changelog is empty now so that has fixed the issue. |
@filipelautert Any idea when the fixed version will be released? |
Hello @wslaghekke -maybe this or next week. |
Hi,
with version 4.21.0 and 4.21.1 of liquibase-hibernate6 there is a new bug.
The diff changeLog creates a change which is removing the unique constraint.
Here is a sample to reproduce:
Entity:
mvn liquibase:update to apply the change and create the table
mvn liquibase:diff to create a diff. Expecting no changes. But it creates following change:
I am using liquibase-maven-plugin version 4.21.1 + liquibase-hibernate6 version 4.21.1 + postgresql 15.2
application.properties
pom.xml:
The text was updated successfully, but these errors were encountered: