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

Hello

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"/>
</changeSet>

Column definition in createTable changelog is:

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

Field declaration in my entity class:

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

This is really irritating. Please help resolve it.

Thank you for reporting the problem! Created issue: https://youtrack.haulmont.com/issue/JST-2470

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)