commerce_coupon_update_7003 ( Set the coupon reference as non locked. )
Looks like it tries to change the field type to 'commerce_coupon_reference' right after
commerce_coupon_update_7002 ( Remove coupon type id field and update coupon reference field. )
has just changed it to an entity reference field
This causes the update to fail.
Fixing that error then gives a new error
"Cannot change an existing field's entity_types property"
because the entity_types for commerce_coupon_reference was array('commerce_order', 'commerce_coupon') but commerce_coupon_update_7003 tries to set it to array('commerce_coupon') only.
The attached patch fixes up commerce_coupon_update_7003 and allows it to run properly.
thanks,
DT
| Comment | File | Size | Author |
|---|---|---|---|
| commerce_coupon_update_7003_fixed.patch | 632 bytes | davidwhthomas |
Comments
Comment #0.0
davidwhthomas commentedmore info
Comment #1
pcambraI assumed wrongly that people did 7003 before updating the code, I'm removing the code better as it doesn't make any sense now.
Thanks for reporting
Comment #2.0
(not verified) commentedformatting