Set policy check severity and exit codes

Procedure

1

Run the checks customize command using the following example parameters

liquibase checks customize --check-name=ModifyDataTypeWarn
2

Follow the CLI instructions to set the severity level

Set the Severity to return a code of 0-4 when triggered (current: '<currentvalue>'. options: 'INFO' (0) 'MINOR' (1), 'MAJOR' (2), 'CRITICAL' (3), BLOCKER' (4) )
3

Change the default severity of INFO in the CLI

Change the default severity of INFO in the CLI output by entering one of the below words or their associated number:

  • MINOR or 1

  • MAJOR or 2

  • CRITICAL or 3

  • BLOCKER or 4

Example: If you set the severity to CRITICAL, you will see 3 in the show output and as the returned exit code when triggered.

The checks-settings.config file you specify when running the customize command changes the ModifyDataTypeWarn check to have a new severity value in a corresponding number.

Set policy check severity and exit codes - Liquibase