generate-changeset-created-values

The generate-changeset-created-values global parameter is a Boolean that determines whether Liquibase adds timestamps to changesets in the changelog it generates when you run the diff-changelog command and generate-changelog command. By default, it is set to false.

Uses

If you use the diff-changelog or generate-changelog commands to create a changelog with the contents of your database, you can set generate-changeset-created-values to true to include a timestamp in the header of each changeset in your changelog. The timestamp is stored as the value of the created parameter and uses the format YYYY-MM-DD hh:mm-ssss.

Syntax

You can set this parameter in the following ways:

Option

Syntax

Liquibase properties file (defaults file)

liquibase.generateChangesetCreatedValues: <true|false>

Global flow file argument

globalArgs: { generate-changeset-created-values: "<true|false>" }

Global CLI parameter

liquibase --generate-changeset-created-values=<true|false> generate-changelog --changelog-file=example-changelog.xml

JVM system property (JAVA_OPTS environment variable)

Unix:

JAVA_OPTS=-Dliquibase.generateChangesetCreatedValues=<true|false>

Windows:

JAVA_OPTS=-D"liquibase.generateChangesetCreatedValues"=<true|false>

Liquibase environment variable

LIQUIBASE_COMMAND_CHANGELOG_FILE=<string>