Use Liquibase API to check that the db is up to date only

There is a liquibase.Liquibase.listUnrunChangeSets(contexts) which will return the number of changes that have not been exected.  If the size is > 0 you know it is not up to date.


Nathan

I know you can use Spring to update the db when the a web application war is deployed or started but what I want is to use the Liquibase API to check if the db is up to date but not run the update. I want to be able stop the application from starting if the databse is not up to date.

Is this possible?

Thank you