How to configure liquibase not to include file path or name for calculating checksum?

前端 未结 4 1859
庸人自扰
庸人自扰 2021-01-04 05:25

I found that liquibase uses the full path of the change log file to calculate the checksum.

This behavior restricts to modify change log file names and tries to rea

4条回答
  •  甜味超标
    2021-01-04 05:57

    Upstream developers recommend to use logicalFilePath and suggest to perform direct update on DATABASECHANGELOG.FILENAME column:

    • https://forum.liquibase.org/t/why-does-the-change-log-contain-the-file-name/481

    to fix broken entries with full paths.

    If you set hashes DATABASECHANGELOG.MD5SUM to null that triggers hashes recalculation on next LiquiBase run. It is necessary as hash algorithm includes moving parts too into the result.

提交回复
热议问题