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

前端 未结 4 1869
庸人自扰
庸人自扰 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:55

    I have faced the same problem and found solution below.

    If you are using liquibase sql format then simply put below in your sql file:

    --liquibase formatted sql logicalFilePath:

    If you are using liquibase xml format then simply put below in your xml file:

    
    ...
    
    

    After adding above logicalFilePath attribute, run the liquibase update command. It will put relative file path whatever you put in logicalFilePath in FILENAME column of table DATABASECHANGELOG

提交回复
热议问题