Search code examples
liquibasedelete-row

liquibase delete row from databasechangelog


Is it OK to manually delete rows from Databasechangelog?

Btw, rollback to a TAG is not an option in my case.


Solution

  • Deleting rows from the table will simulate a rollback without actually performing one.... Leaving your database in an unknown state (the whole point is that liquibase manages the schema for you).

    Why not just rollback a specified number of changesets instead?

    liquibase rollbackCount 5