add the newly added column to the option stream migration

This commit is contained in:
Diatrex 2020-06-16 17:04:29 +03:00
parent 5468d060c2
commit 3660c38177
2 changed files with 12 additions and 8 deletions

View File

@ -250,13 +250,5 @@ class VisiosoftModuleAdvsCreateAdvsFields extends Migration
'default_value' => 0,
]
],
// Options Fields
"adv" => [
"type" => "anomaly.field_type.relationship",
"config" => [
"related" => AdvModel::class,
]
]
];
}

View File

@ -28,6 +28,18 @@ class VisiosoftModuleAdvsCreateOptionsStream extends Migration
'sortable' => false,
];
/**
* This field will be added.
*/
protected $fields = [
"adv" => [
"type" => "anomaly.field_type.relationship",
"config" => [
"related" => \Visiosoft\AdvsModule\Adv\AdvModel::class,
]
]
];
/**
* The stream assignments.
*