DynamoDeleteDynamoTableCheck

The DynamoDeleteDynamoTableCheck changelog check triggers when a XML, YAML, or JSON changeset contains the Dynamo-specific deleteDynamoTable change type.

About DynamoDeleteDynamoTableCheck

Liquibase version required

4.31.0+

Scope (--checks-scope)

changelog

Default status

disabled

Default severity (exit code)

0 ("INFO")

Customizable settings

Dynamic customization available

Prerequisites

Uses

Use this check to enforce the use of the Dynamo-specific deleteDynamoTable change type. For example, you can:

  • Ensure specific changesets include the deleteDynamoTable change type.

  • Warn or block deployments if the deleteDynamoTable change type exists in any particular XML, YAML, or JSON changeset.

Procedure

1

This check is disabled by default. To enable it, run the enable command:

liquibase checks enable --check-name=DynamoDeleteDynamoTableCheck

You will see this output: Check 'DynamoDeleteDynamoTableCheck' has been enabled. +------------------------------+-----------+--------+---------+----------+---------------+--------------------------------+ | Short Name                   | Scope     | Type   | Status  | Severity | Customization | Description                    | +------------------------------+-----------+--------+---------+----------+---------------+--------------------------------+ | DynamoDeleteDynamoTableCheck | changelog | sql,   | enabled | 0        | <None>        | This check triggers when a     | |                              |           | xml,   |         |          |               | XML,YAML, or JSON changeset    | |                              |           | yaml,  |         |          |               | contains the Dynamo-specific   | |                              |           | json   |         |          |               | deleteDynamoTable changetype.  | +------------------------------+-----------+--------+---------+----------+---------------+--------------------------------+ Liquibase command 'checks enable' was executed successfully.

2

To set the severity of this check, run:

liquibase checks customize --check-name=DynamoDeleteDynamoTableCheck
3

Set the severity level. This determines the exit code when the check is triggered. Choose one:

  • INFO (0)

  • MINOR (1)

  • MAJOR (2)

  • CRITICAL (3)

  • BLOCKER (4)