diff --git a/addons/default/visiosoft/advs-module/migrations/2021_04_27_143550_visiosoft.module.advs__change_product_options_value.php b/addons/default/visiosoft/advs-module/migrations/2021_04_27_143550_visiosoft.module.advs__change_product_options_value.php new file mode 100644 index 000000000..679e891aa --- /dev/null +++ b/addons/default/visiosoft/advs-module/migrations/2021_04_27_143550_visiosoft.module.advs__change_product_options_value.php @@ -0,0 +1,28 @@ +fields()->findBySlugAndNamespace('product_options_value', 'advs')) { + return; + } + + $field->setAttribute('type', 'visiosoft.field_type.multiple'); + + $this->fields()->save($field); + } + + public function down() + { + if (!$field = $this->fields()->findBySlugAndNamespace('product_options_value', 'advs')) { + return; + } + + $field->setAttribute('type', 'anomaly.field_type.multiple'); + + $this->fields()->save($field); + } +}