문제

So we have a set o database changelogs and we want to achieve that whenever developer make a change in *hbm file, he run a diff comparing changelog commited to our codebase against edited hbm schema - so we can get new changelog with his recent modifications.

Liquibase-hibernate allows to compare hbm schema agaisnt any database, but is there a way to compare hbm schema against changelog xml file ?

도움이 되었습니까?

해결책

No, it is not currently possible. Comparing a database (or hibernate mapping) to a changelog is a is a popular request, but it hasn't been implemented yet. The biggest problem is that to solve it for the general case we need an SQL parser in order to handle and blocks.

It can be done for a subset of all change logs where just standard etc. tags are used, but it has not been implemented yet, unfortunately.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top