ChangeDropColumnWarn

This check warns a user when a column is being dropped so that they can ensure that such a schema change won't lead to unintentional loss of data and unrecoverable data loss.

Uses

Use the check to warn when a column is being dropped. A column drop can lead to a significant schema change which can destroy your organization’s most essential resource: critical data. Such an unintended change can result in permanent data loss, production level service outages, and more. This quality check, like other checks, can be configured with a “severity” level which returns an exit code designed to stop automated jobs, giving your team time to inspect these significant changes.

Run the ChangeDropColumnWarn check

The ChangeDropColumnWarn check is enabled by default, so you will not need to turn it on if you have not changed your settings previously. To run the ChangeDropColumnWarn check, ensure you have a Liquibase Pro license and the checks-scope property includes changelog. The checks-scope parameter is set in the default properties file, environment variable, or any standard method. Then, check the changelog to see if ChangeDropColumnWarn is enabled.

Enable the ChangeDropColumnWarn check by running the following command in the CLI:

liquibase checks enable --check-name=ChangeDropColumnWarn
Short Name Scope Enabled Severity Customization Description
ChangeDropColumnWarn changelog

true

Default value: 0

  • 'INFO' | 0
  • 'MINOR' | 1
  • 'MAJOR' | 2
  • 'CRITICAL' | 3
  • 'BLOCKER' | 4

<None>

This check warns a user when a column is being dropped so that they can ensure that dropping the table won't lead to unintentional loss of data