简体   繁体   中英

Can I force liquibase 3.5.1 to ignore legacy changeset checksum differences?

We're using liquibase 3.5.1 to help maintain mysql/mariadb installations across dozens of client computers. Our stand-alone app creates a local DB and prepopulates that DB with 'seed' data. With updates to mysql and some other tools we're using, we've been forced to alter some legacy liquibase changesets which obviously changes the checksums for these changesets.

We'd like to have liquibase completely ignore the changes to the checksums.

If it were just a couple of changes or even a lot of changes where a developer could intervene we would just update the databasechangelog table directly. However, there are affected databases on clients' computers who would have no idea how to make the database changes needed.

I know about 'validCheckSum' and thought I could use --validCheckSum: ANY in the formatted sql files but that doesn't appear to do anything.

--liquibase formatted sql
--changeset db-scripter:1
--comment: fixing issues with this after upgrading
--validCheckSum: ANY
INSERT INTO ...

'runOnChange' is also not an option as we don't want to rerun any of these old changesets (and insert twice the 'seed' data)

Are we missing any options here? Or perhaps we're not using the validCheckSum correctly?

我有类似的情况,我使用clearCheckSums命令解决了。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM