Retaining log records in DATABASECHANGELOG table during rollback

Hi - While executing the rollbackDatabase ANT task for a changelog, log records in the DATABASECHANGELOG table for the previously executed changesets from the changelog get deleted. Hence we there is no way to know whether we had executed a particular changelog. Is it possible to rollback the changes but keep the log records in the DATABASECHANGELOG table without getting deleted?

 

Regadrs,

Sakthi

The following reflects my vision of the internal workings of Liquibase.

The DATABASECHANGELOG table is used by liquibase to figure out which changesets should be executed. So I don’t think it could be used to record a complete history of changes done.

But I would like to see an enhancement to liquibase which records the various steps updates and rollbacks done. Maybe there could be a third table for this functionality.