9.12.1 calculate-checksum
filepath::id::author.
.Syntax
Liquibase|lb calculate-checksum|cac {OPTIONS}
The calculate-checksum command is typically used to compute an MD5
checksum, which serves as a unique identifier for the changeset. As a result, you
can see whether the changeset has been changed and whether it has to be deployed
differently. The MD5SUM column in the DATABASECHANGELOG
table
contains a checksum of the changeset and any change made in the changeset will
result in a different checksum.
Options
Option | Description | Default |
---|---|---|
Required | ||
-changelog-file|-chf |
The root changelog file. | - |
-changeset-identifier|-chi |
Changeset ID identifier of form filepath::id::author. | - |
Optional | ||
-database-changelog-table-name|-dactn |
Name of table to use for tracking change history. | - |
-debug|-de |
Enable debug output. | - |
-default-schema-name|-desn |
The default schema name to use for the database connection. | - |
-defaults-file|-def |
Fully qualified path to the properties file you want
to use. Example:
-defaults-file/tmp/liquibase.properties |
- |
-liquibase-schema-name|-lbsn |
Schema to use for Liquibase objects. | - |
-liquibase-tablespace-name|-lbtn |
Tablespace to use for Liquibase objects. | - |
-log|-lo |
Enable logging. Standard logging is Debug logging is |
- |
-search-path|-sep |
Complete list of locations to search for files such as changelog files. You can specify multiple paths by separating them with commas. |
- |
-secure-parsing|-scp |
If true, remove functionality from file parsers, which can be used insecurely. An example is disabling remote XML entity support. |
True |
-output-default-schema|-ouds |
Controls whether names of objects in the default schema are fully qualified or not. If false, only objects outside the default schema are fully qualified. | False |
Example
Calculate a checksum for changeset:
SQL> lb calculate-checksum --changelog-file countries_table.xml --changeset-identifier
countries_table.xml::382e51cedfbfc7ba59568dd09dcd4e110b9fbeca::(USER)-Generated
SQL> liquibase calculate-checksum changelog.oracle.sql::myID_123::Steve