File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,23 +15,23 @@ public function up()
1515 {
1616 Schema::table (config ('workflows.db_prefix ' ).'task_logs ' , function (Blueprint $ table ) {
1717 $ table ->bigInteger ('task_id ' )->unsigned ()->change ();
18- $ table ->foreign ('task_id ' )->references ('id ' )->on ('tasks ' )->onDelete ('cascade ' );
18+ $ table ->foreign ('task_id ' )->references ('id ' )->on (config ( ' workflows.db_prefix ' ). 'tasks ' )->onDelete ('cascade ' );
1919 });
2020
2121 Schema::table (config ('workflows.db_prefix ' ).'tasks ' , function (Blueprint $ table ) {
2222 $ table ->dropIndex (['workflow_id ' ]);
2323 $ table ->bigInteger ('workflow_id ' )->unsigned ()->change ();
24- $ table ->foreign ('workflow_id ' )->references ('id ' )->on ('workflows ' )->onDelete ('cascade ' );
24+ $ table ->foreign ('workflow_id ' )->references ('id ' )->on (config ( ' workflows.db_prefix ' ). 'workflows ' )->onDelete ('cascade ' );
2525 });
2626
2727 Schema::table (config ('workflows.db_prefix ' ).'triggers ' , function (Blueprint $ table ) {
2828 $ table ->bigInteger ('workflow_id ' )->unsigned ()->change ();
29- $ table ->foreign ('workflow_id ' )->references ('id ' )->on ('workflows ' )->onDelete ('cascade ' );
29+ $ table ->foreign ('workflow_id ' )->references ('id ' )->on (config ( ' workflows.db_prefix ' ). 'workflows ' )->onDelete ('cascade ' );
3030 });
3131
3232 Schema::table (config ('workflows.db_prefix ' ).'workflow_logs ' , function (Blueprint $ table ) {
3333 $ table ->bigInteger ('workflow_id ' )->unsigned ()->change ();
34- $ table ->foreign ('workflow_id ' )->references ('id ' )->on ('workflows ' )->onDelete ('cascade ' );
34+ $ table ->foreign ('workflow_id ' )->references ('id ' )->on (config ( ' workflows.db_prefix ' ). 'workflows ' )->onDelete ('cascade ' );
3535 });
3636 }
3737
You can’t perform that action at this time.
0 commit comments