Merge pull request #597 from openclassify/dia

add the newly added column to the option stream migration
This commit is contained in:
Fatih Alp 2020-06-16 17:20:38 +03:00 committed by GitHub
commit d3f1584cc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.
*