Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure liquibase not to include file path or name for calculating checksum?

Tags:

liquibase

I found that liquibase uses the full path of the change log file to calculate the checksum.

This behavior restricts to modify change log file names and tries to reapply the change sets again once renamed the file.

Is there a way to configure liquibase to use only the changelog id to calculate cuecksum?

Please provide your valuable thoughts.

like image 805
dharshan Avatar asked Nov 10 '13 23:11

dharshan


People also ask

How does Liquibase calculate checksum?

When running the calculate-checksum command, the DATABASECHANGELOG table calculates an MD5 checksum for each entry based on the SQL script of the changeset. This checksum helps Liquibase detect differences between the changesets you want to deploy and the changesets that have already been run against the database.

Where does Liquibase store checksum?

what was actually run against the database, Liquibase stores a checksum with each changeset entry in the DATABASECHANGELOG tracking table.


1 Answers

Use the attribute logicalFilePath of the databaseChangeLog tag.

like image 154
Jens Avatar answered Sep 22 '22 17:09

Jens