Open zapphyre opened 6 years ago
these might be helpful: #137 #99
I have seen and tried those, that's why I mention I tried @Audittable. But that's workaround anyway. Hope someone can solve it finally.
I wrote another workaournd in #99 which could solve this problem. Just set the "unsupported" properties via the environment (i.e -Dorg.hibernate.envers.audit_table_suffix=_vers)
Yes, now the problem is that it makes diff of the 'audit' postgre schema but on update goal it updates 'public' schema with the audit tables.. Is there an option to make liquibase preserve schema information?
Does someone has a fix for this? Struggling with this problem too. @MalteKrueger's workaround seems not to work out for me.
I am using liquibase 3.5.3 with hibernate 5.2.9.Final and envers 5.2.12.Final.
liquibase configuration: pom.xml:
liquibase.properties:
JPAConfig.java:
so you see, my audit tables gets generated in 'audit' catalog with the '_vers' suffix.
when I run 'mvn liquibase:diff' it keeps telling me that audit tables are missing:
so it can't read suffinx information form the hibernate configuration. I have tried set @AuditTable on the entity with the value of the actual table name, but does not help.
advice, please.
┆Issue is synchronized with this Jira Bug by Unito