suppress-liquibase-sql

--suppress-liquibase-sql is a global Boolean parameter. When set to true, Liquibase excludes DATABASECHANGELOG table and DATABASECHANGELOGHISTORY table SQL from the console and log output of *-sql commands, such as update-sql and rollback-sql. It is available in Liquibase 4.29.2 and later. The default value is false.

Uses

The Liquibase *-sql commands help you identify potential problems with SQL you're planning to deploy to your database. For example, the update-count-sql command displays the SQL that would be generated by running the update-count command.

By default, Liquibase prints all SQL it generates to the console and logs. This includes SQL for your database tables as well as the SQL to update the internal Liquibase tracking tables (DBCL and DBCLH).

You may need to use *-sql commands to review the SQL to be run against your database, but don't want to see any information about the tracking tables. To exclude tracking table SQL, set --suppress-liquibase-sql to true.

Syntax

You can set this parameter in the following ways:

Option Syntax
Liquibase properties file (defaults file)
liquibase.suppressLiquibaseSql: <true|false>
Global flow file argument (example)
stages:
  Default:
    actions:
      - type: liquibase
        command: update-sql
        globalArgs: { suppress-liquibase-sql: "<true|false>" }
Global CLI parameter
liquibase
 --suppress-liquibase-sql=<true|false> update-sql
 --changelog-file=example-changelog.xml

JVM system property (JAVA_OPTS Environment Variable)

JAVA_OPTS=-Dliquibase.suppressLiquibaseSql=<true|false>
Liquibase Environment Variables
LIQUIBASE_SUPPRESS_LIQUIBASE_SQL=<true|false>

For more information, see Working with Command Parameters.

Output

Related links