File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,15 @@ public function up()
17
17
$ table ->index ('task_id ' , 'task_results_task_id_idx ' );
18
18
$ table ->index ('ran_at ' , 'task_results_ran_at_idx ' );
19
19
$ table ->foreign ('task_id ' , 'task_id_fk ' )
20
- ->references ('id ' )->on ('tasks ' );
20
+ ->references ('id ' )
21
+ ->on (config ('totem.table_prefix ' ).'tasks ' );
21
22
});
22
23
23
24
Schema::table (config ('totem.table_prefix ' ).'task_frequencies ' , function (Blueprint $ table ) {
24
25
$ table ->index ('task_id ' , 'task_frequencies_task_id_idx ' );
25
26
$ table ->foreign ('task_id ' , 'task_frequencies_task_id_fk ' )
26
- ->references ('id ' )->on ('tasks ' );
27
+ ->references ('id ' )
28
+ ->on (config ('totem.table_prefix ' ).'tasks ' );
27
29
});
28
30
29
31
Schema::table (config ('totem.table_prefix ' ).'tasks ' , function (Blueprint $ table ) {
You can’t perform that action at this time.
0 commit comments