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()
1111 Schema::create ('workflows ' , function (Blueprint $ table ) {
1212 $ table ->id ();
1313 $ 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 ' );
1515 $ table ->string ('type ' )->default ('workflow ' )->comment ('workflow or state_machine ' );
1616 $ table ->text ('description ' )->nullable ();
1717 $ 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
1717 protected $ casts = [
1818 'supports ' => 'array ' ,
1919 'metadata ' => 'array ' ,
20+ 'marking_store ' => 'array ' ,
2021 'type ' => WorkflowTypeEnum::class,
2122 ];
2223
Original file line number Diff line number Diff line change @@ -63,6 +63,9 @@ protected function makeWorkflowCofig($workflow): array
6363
6464 return [
6565 $ workflow ->name => [
66+ 'marking_store ' => $ workflow ->marking_store ,
67+ 'type ' => $ workflow ->type ?? 'workflow ' ,
68+ 'metadata ' => $ workflow ->metadata ,
6669 'supports ' => $ workflow ->supports ,
6770 'places ' => $ places ,
6871 'transitions ' => $ transitions ,
You can’t perform that action at this time.
0 commit comments