Is there a way using the maven plugin to diff a changelog against a database (instead of database to database)?
You can use the status command to determine which changesets are pending for a particular database.
Thanks Daryl, that works.
I’m curious is there a way to do this that doesn’t involve DATABASECHANGELOG table? My team has concerns with this table if it gets overwritten.
I don’t think there is a way to compare a changelog directly to the database. That being said, the databasechangelog table is a critical table should be protected with a backup like any other table in your schema.