question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

md5sum column being update to NULL when I try to migrate from 3.5.3 to 4.8.0 or 4.9.0

See original GitHub issue

So, exactly as I wrote in the title, I am trying to update my Java application to use newer version of liquibase-core library as there are vulnerabilities found in the lower versions. However, when I do upgrade my liquibase-core library and when I start migration with Liquibase#update(Contexts contexts, LabelExpression labelExpression) method, I see column md5sum in databasechangelog table being set to NULL, instead of being recalculated to someting like 8:92a9dbde7a04a1d2ee1aec16beaf0d6b. Underlying database is postgresql. Did anyone experienced someting similar? Just to mention that I am getting no errors or exceptions, it’s just md5sum column being overridden to NULL for all 3.5.3 migrations. New migrations are getting correct md5sum value, as expected.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
nvkvccommented, Jul 26, 2022

There is a workaround for this issue: First bump 3.5.3 version to 3.6.X version (as in this version are introduced some breaking changes reg. checksum logic) After liquibase version is bumped to 3.6.X version, check your newly updated md5sum column (it should contain values something like 8:92a9dbde7a04a1d2ee1aec16beaf0d6b, comparing to previous 7:62a9cefa5a04a1d2ee1aec16beaf0d6b). After that you can safely bump to 4.8 version

FYI @kataggart

1reaction
nvkvccommented, Jul 25, 2022

@nvkvc do all the changesets that are now NULL on databasechangelog still exist in the changelog file? Thanks

@kataggart Yes, they do exists, changelog files are still there. The only thing I updated in changelog files is that I have added logicalFilePath attribute to keep it backward compatible. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrating liquibase from version 3.5.3 to 4.8.0 causes ...
No error is thrown, it's just md5sum column being overriden with NULL value. New migrations are getting correct md5sum value, looking somthing ...
Read more >
Release Notes | Liquibase Docs
Reference information for Liquibase release notes.
Read more >
MD5SUM null when upgrading from 1.9.5 to 2.0-RC7
Hi all, for a certain project I am trying to upgrade Liquibase from 1.9.5 to 2.0.-RC7 which works in general, but I get...
Read more >
[CORE-3514] Migrating to Liquibase 3.8, Liquibase tries to ...
1Updating NULL md5sum for classpath:liquibase/changelog.xml::changeset_name::author 2UPDATE PUBLIC.DATABASECHANGELOG SET MD5SUM ...
Read more >
news - LFTP
mkdir: fixed exit code with -f option. ftp: made ftp:use-pret setting tri-boolean. get/mget/put/mput: don't try next files after ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found