cancel
Showing results for 
Search instead for 
Did you mean: 

How to transform a field value during the data migration

How to transform a field value during the data migration

During the data migration from Magento 1.9.0 c.e. to Magento 2.1.5 e.e. I get the following warning :

 

  • Mismatch of data types. Source document: salesrule. Fields: discount_step (float unsigned)
  • Mismatch of data types. Destination document: salesrule. Fields: discount_step (int(10) unsigned [0])

I put in brackets the type of value which is in the DB schema. How can I convert the float value into a int value during the migration?

I saw the <transform> tag in the xml files, but I didn't really get how should I use it.