validating if databasechangelog has more commits than in provided log file

Hi,

Is there any way to tell liquiebase to validate if the provided changelog file has all changesets already applied to database,
and in case it doesn’t - throw an exception?

e.g

there were 2 changes already applied to database,
but now someone tries to launch an application which has only 1 changeset in the liquibase change log file. (i would like such application to fail to start, because it was designed for an older version of database)

Regards,
Vitaliy S