verbb / snipcart

A Craft CMS plugin to integrate with Snipcart.
Other
21 stars 9 forks source link

issue running migration to v2.0 #53

Closed tobystokes closed 1 year ago

tobystokes commented 1 year ago

using the plugin after composer require "fostercommerce/craft-snipcart:dev-craft4" all fine, but after running craft update all :

*** applying m230907_112944_migrate_field_to_multicolumn_content
Exception: {"charLimit":["Field Limit is too big for your chosen Column Type."]} (/var/www/html/vendor/fostercommerce/craft-snipcart/src/migrations/m230907_112944_migrate_field_to_multicolumn_content.php:40)
#0 /var/www/html/vendor/fostercommerce/craft-snipcart/src/migrations/m230907_112944_migrate_field_to_multicolumn_content.php(47): fostercommerce\snipcart\migrations\m230907_112944_migrate_field_to_multicolumn_content->resaveFields()

(I'm not actually using the plugin's fieldType...)

johnnynotsolucky commented 1 year ago

Resolved with a2df4223abaf0fcdd240bf556f8f4f711caf7c9c

I'm not actually using the plugin's fieldType...

@tobystokes The migration that is being run resaves all fields so that any instances of the plugins field can be resaved correctly within its context.

With this update, I disabled running validation so that nothing should break. If you want to see which fields are not passing validation, you can remove the false from this line. I've updated the exception to include the actual field handle and type for clarification.