ModifyDataTypeWarn

Last updated: June 9, 2026

Uses

Property

Value

Liquibase version required

4.5.0+

Scope (--checks-scope)

changelog

Default status

enabled

Default severity (exit code)

0 ("INFO")

Customizable settings

No (static)

Use the ModifyDataTypeWarn check to warn when changelogs contain a data type modification, such as a change which might lead to unintended changes or permanent loss of essential data. Unexpected changes can lead to failures of database or application jobs which rely on the previous datatype, in turn potentially leading to missing and unrecoverable data loss, service outages, and more. This policy 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.

Before you begin

  1. Ensure that you have correctly specified your Liquibase Secure license key.

  2. Ensure that the --checks-scope parameter includes the scope of this check.

Changelog checks prerequisites

loading

loading

loading

loading

loading

Procedure

1

Enable

This check is enabled by default. To verify that it is currently enabled, run the checks show command:

liquibase checks show --check-name=<string>

2

To run the check, use the checks run command.

loading

loading

Note: For flow files you'll need to run liquibase flow to apply your changes.

Example output

Short Name

Category

Description

Customization

Status

Severity

Scope

Type

ModifyDataTypeWarn

Data Protection

Flags any changes that modify the data type of an existing column, helping avoid data truncation or loss when converting between incompatible types, such as changing from a larger to smaller size or from text to numeric formats.

<None>

enabled

0

changelog

sql, xml, yaml, json

Liquibase command 'checks show' was executed successfully.