Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve liquibase checksum validation fail after liquibase upgrade

In my project I just tried upgrading liquibase from 3.2.2 to 3.4.2 (both the jars and the maven plugin). EDIT: same for upgrade to 3.3.x. As a consequence, starting the application now gives the following error:

Caused by: liquibase.exception.ValidationFailedException: Validation Failed:
   4 change sets check sum
   src/main/resources/changelogs/xxx_add_indices_to_event_tables.xml::xxx-add_indices_to_event_tables::xxx is now: 7:0fc8f1faf484a59a96125f3e63431128

This for 4 changesets out of 50, all of which add indexes, such as:

<createIndex indexName="idx_eventtype" tableName="events">
    <column name="eventtype" type="varchar(64)"/>
</createIndex>

While I can fix this locally, this would be a huge pain to manually fix on all running environments. Is this a bug, or is there some workaround?

like image 700
tkruse Avatar asked Jan 07 '16 12:01

tkruse


1 Answers

mvn liquibase:clearCheckSums

Will clear the checkSums

like image 90
Sreedhu Madhu Avatar answered Oct 08 '22 04:10

Sreedhu Madhu