Is it possible to classify Liquibase changesets

88 views Asked by At

I would like to classify Liquibase changesets like

  • "must run" (e.g. add column)
  • "can run" (e.g. change column size)

Is there a way to do something like that?

The reason to do this is that the execution of changesets should not stop if a changeset from class "can run" runs in a ValidationFailedException or something similar.

Thanks

1

There are 1 answers

3
Robe Elckers On

You can mark your changesets with an attribute

failOnError

Example:

<changeSet id="changeset1" failOnError="true">
   <!-- do important stuff here -->
</changeSet>

<changeSet id="changeset2" failOnError="false">
   <!-- do not so important stuff here -->
</changeSet>