-
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
Liquibase 4.28 + hibernate 6 / Spring: Diff does not output changes #708
Comments
Might be same as: liquibase/liquibase#6148 |
i think I found the commit which breaks this liquibase/liquibase@2b1c363 in liquibase-hibernate/src/main/java/liquibase/ext/hibernate/database/HibernateDatabase.java Line 333 in 33fa3ce
liquibase-hibernate/src/main/java/liquibase/ext/hibernate/snapshot/CatalogSnapshotGenerator.java Line 21 in 33fa3ce
true
Maybe you could set the catalog to default in liquibase-hibernate/src/main/java/liquibase/ext/hibernate/snapshot/SchemaSnapshotGenerator.java Line 21 in 33fa3ce
|
Easiest Fix that I found so far was to change HibernateSpringPackageDatabase so that the schema and catalog both return null instead of "HIBERNATE":
But I'm not sure about the implications of that. |
I've found a much better fix I think:
|
Hello,
I recognize a changed behaviour using
mvn liquiebase:diff
when switching from version 4.26 to 4.28:When modifying a
@Column
annotation I usually see a drop-column and an add-column change in the diff. Now only the drop-column appears.After debugging a while I see that
DiffOutputControl.shouldOutput
returns nowfalse
for the add-column modification because the compared catalog name is different in liquibase 4.28:true
false
Database:
admin @ jdbc:postgresql://localhost:5432/my_db (Default Schema: public)
ReferenceUrl in liquibase.properties:
referenceUrl=hibernate:spring:com.bosch.some-example.data.model?dialect=org.hibernate.dialect.PostgresPlusDialect
Versions used:
I did not yet drill down to the source of the issue - why the catalog name for the reference changed. Maybe you can confirm the issue and give me a hint where to look?
Thanks!
The text was updated successfully, but these errors were encountered: