Some times you need attribute type change in hybris. Hybris as own ORM and it is not support updating attribute type. If you change attribute type you will get error like this:
de.hybris.platform.servicelayer.exceptions.ModelSavingException: <########## NewPropError ##########> value type mismatch in unlocalized property ‘myproperty’ of ‘myitem’ : expected ‘class java.lang.Integer’ but got ‘class java.lang.Long’
If you don’t want to adding new field than migrating data and removing old, you can use below procedure.
- Change column type in DB. You cannot do this on hac because DDL disabled (solution added as related pot).
- Update system in hac (Platform -> Update without Create essential data option).
Leave a Reply