diff --git a/database/migrations/2018_07_06_165603_add_indexes_for_tasks.php b/database/migrations/2018_07_06_165603_add_indexes_for_tasks.php index 0e062a38..6b93faa8 100644 --- a/database/migrations/2018_07_06_165603_add_indexes_for_tasks.php +++ b/database/migrations/2018_07_06_165603_add_indexes_for_tasks.php @@ -17,13 +17,15 @@ public function up() $table->index('task_id', 'task_results_task_id_idx'); $table->index('ran_at', 'task_results_ran_at_idx'); $table->foreign('task_id', 'task_id_fk') - ->references('id')->on('tasks'); + ->references('id') + ->on(config('totem.table_prefix').'tasks'); }); Schema::table(config('totem.table_prefix').'task_frequencies', function (Blueprint $table) { $table->index('task_id', 'task_frequencies_task_id_idx'); $table->foreign('task_id', 'task_frequencies_task_id_fk') - ->references('id')->on('tasks'); + ->references('id') + ->on(config('totem.table_prefix').'tasks'); }); Schema::table(config('totem.table_prefix').'tasks', function (Blueprint $table) {