mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
added migration
This commit is contained in:
parent
9ab2c30e4d
commit
d8ae118d9f
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Anomaly\Streams\Platform\Database\Migration\Migration;
|
||||||
|
|
||||||
|
class VisiosoftModuleCatsChangeIconFieldType extends Migration
|
||||||
|
{
|
||||||
|
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
if (!$field = $this->fields()->findBySlugAndNamespace('icon', 'cats')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$field->setAttribute('type', 'visiosoft.field_type.input_file');
|
||||||
|
$field->setAttribute('config', []);
|
||||||
|
$this->fields()->save($field);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user