File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ public function up()
11
11
Schema::create ('workflows ' , function (Blueprint $ table ) {
12
12
$ table ->id ();
13
13
$ table ->string ('name ' );
14
- $ table ->string ( ' marking_store_attribute ' )->nullable ()->comment ('name of marking store attribute ' );
14
+ $ table ->text ( ' marking_store ' )->nullable ()->comment ('marking store as array ' );
15
15
$ table ->string ('type ' )->default ('workflow ' )->comment ('workflow or state_machine ' );
16
16
$ table ->text ('description ' )->nullable ();
17
17
$ table ->json ('supports ' )->nullable ()->comment ('support models ' );
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ class Workflow extends Model
17
17
protected $ casts = [
18
18
'supports ' => 'array ' ,
19
19
'metadata ' => 'array ' ,
20
+ 'marking_store ' => 'array ' ,
20
21
'type ' => WorkflowTypeEnum::class,
21
22
];
22
23
Original file line number Diff line number Diff line change @@ -63,6 +63,9 @@ protected function makeWorkflowCofig($workflow): array
63
63
64
64
return [
65
65
$ workflow ->name => [
66
+ 'marking_store ' => $ workflow ->marking_store ,
67
+ 'type ' => $ workflow ->type ?? 'workflow ' ,
68
+ 'metadata ' => $ workflow ->metadata ,
66
69
'supports ' => $ workflow ->supports ,
67
70
'places ' => $ places ,
68
71
'transitions ' => $ transitions ,
You can’t perform that action at this time.
0 commit comments