I am trying to change dataType from NUMBER (10.0) to NUMBER (30.0) against a database with data in these columns. For this I have to use lipibase. I am using the following:
<modifyDataType tableName="tableName" columnName="columnsName" newDataType="NUMBER(38,0)"/>
But for tables with data in columns, I get the following error:
Caused by: java.sql.SQLException: ORA-01440: column to be modified must be empty to decrease precision or scale
And the column is not wrapped. Can data columns not be migrated to a new type using this method?
source
share