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.
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.
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">
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.
Try adding validCheckSum
to the top of your changeSet
, like this:
<changeSet> <validCheckSum>ANY</validCheckSum> <!-- the rest of your changeSet here --> </changeSet>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With