I originally posted this question on stackoverflow, but since there was not so much activity, I thought it’s a good idea to post this here as well.
My usecase: We use liquibase to manage the database layout and its changes. We also use liquibase to generate SQL scripts based on the liquibase changeset that are given to the customers. Our application however does not use liquibase to generate the schema, as the application does not have the rights to do this.
What we would like to implement is that the application checks on startup if the bundled changeset is equal to the database schema and the startup is aborted if they do not match. Is there a function in the liquibase Java API that I can use for that?
Thanks and best regards