mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#3553 Ad post contact - Options Design
This commit is contained in:
parent
ccff35a77c
commit
79f5195931
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Anomaly\Streams\Platform\Database\Migration\Migration;
|
||||
|
||||
class VisiosoftModuleAdvsChangeProductOptionsValue extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
if (!$field = $this->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);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user