Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Liquibase - disable checksum?

Tags:

How can I disable checksum validation in Liquibase?

It looks like Liquibase does not provide such feature. Would it be hard to modify Liquibase to achieve that? Your opinion, please.

like image 521
anton1980 Avatar asked Jun 01 '15 17:06

anton1980


People also ask

How do I turn off changeset in Liquibase?

Running the deactivate-changelog command The changelog file specified either in the Liquibase properties file or as CLI argument ( --changelog-file=mychangelog ) will have its changelogID removed. If the changelog file is in source control, commit the newly deactivated changelog.

What is checksum in Liquibase?

Liquibase uses a checksum to detect if your target database was updated. The checksum is computed after the parameters are applied. For example, let's say your target database already ran the following changeset: <changeSet id="1" author="example"> <addColumn tableName="my_table">

How does Liquibase Calculate md5sum?

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.


1 Answers

Try adding validCheckSum to the top of your changeSet, like this:

<changeSet>     <validCheckSum>ANY</validCheckSum>     <!-- the rest of your changeSet here --> </changeSet> 
like image 176
chris Avatar answered Sep 23 '22 04:09

chris