Unable to change field type for Salary fields

Hi, currently salary fields are in Data field type. I want to change it to Currency. But ERPNext is not allowing to change. I am using MariaDB

Screenshot 2025-02-11 094505

@anilpoda remove it ,save then add it again .

1 Like

Am I thinking right? For Salary fields Currency field type is the correct datatype?

@anilpoda yes, currency is correct.

1 Like

If I remove any field, does it mean data in that column in table will also be deleted?

@anilpoda if you don’t run migration of trim the tables . the column and the data will persist . so if you remove he field and add it again with the same name , you should be able to recover the data .

1 Like