Liquibase generates changelog for Decimal-Currency columns every time app starts


Why is liquibase change data type changelog file being generated every time I start my application? This is happening for all similar columns (and only these columns):

<changeSet id="1" author="tester">
    <modifyDataType columnName="AMOUNT" newDataType="DECIMAL" tableName="MY_TABLE"/>

Column definition in createTable changelog is:

<column name="AMOUNT" type="DECIMAL">
    <constraints nullable="false"/>

Field declaration in my entity class:

@CurrencyValue(currency = "Rs", labelPosition = CurrencyLabelPosition.LEFT)
@Column(name = "AMOUNT", nullable = false)
private BigDecimal amount;

This is really irritating. Please help resolve it.

Thank you for reporting the problem! Created issue:

To get rid of it, try to add precision and scale parameters to your columns, e.g. @Column(name = "AMOUNT", nullable = false, precision = 19, scale = 2)