Mvn liquibase:rollback -Dliquibase.rollbackCount=1 does not work as expected

Hi,

Having 3 entries in the table DATABASECHANGELOG with ORDEREXECUTED 318,317,316 the command:

mvn liquibase:rollback -Dliquibase.rollbackCount=1

Tries to rollback the changeset applied on the 316…

Does anyone know why?

To make sure I understand properly, this is the order the changesets were applied:

  1. 318
  2. 317
  3. 316

Based upon that order, 316 would be the changeset that is rolled-back using “rollbackCount 1”.

Rollback is done in reverese chronological order.

No, the order was 316, 317, 318…the sequential number indicates the order

if that is the case, please provide the following:

  1. Log output from initial “update”, using sql-log-level=INFO
  2. Log output from the “rollback-count 1”, using sql-log-level=INFO