ChangeDropTableWarn

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

Uses

Use the check to warn when a table is being dropped. A table drop can lead to a schema change which can potentially 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 changes.

Run the ChangeDropTableWarn check

The ChangeDropTableWarn 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 ChangeDropTableWarn 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 ChangeDropTableWarn is enabled.

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

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

true

Default value: 0

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

<None>

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