File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -45,17 +45,22 @@ public function up()
4545 */
4646 public function down ()
4747 {
48+ Schema::table (config ('totem.table_prefix ' ).'task_results ' , function (Blueprint $ table ) {
49+ $ table ->dropForeign ('task_results_task_id_fk ' );
50+ });
4851 Schema::table (config ('totem.table_prefix ' ).'task_results ' , function (Blueprint $ table ) {
4952 $ table ->dropIndex ('task_results_task_id_idx ' );
5053 $ table ->dropIndex ('task_results_ran_at_idx ' );
51- $ table ->dropForeign ('task_results_task_id_fk ' );
5254 });
5355
5456 Schema::table (config ('totem.table_prefix ' ).'task_frequencies ' , function (Blueprint $ table ) {
55- $ table ->dropIndex ('task_frequencies_task_id_idx ' );
5657 $ table ->dropForeign ('task_frequencies_task_id_fk ' );
5758 });
5859
60+ Schema::table (config ('totem.table_prefix ' ).'task_frequencies ' , function (Blueprint $ table ) {
61+ $ table ->dropIndex ('task_frequencies_task_id_idx ' );
62+ });
63+
5964 Schema::table (config ('totem.table_prefix ' ).'tasks ' , function (Blueprint $ table ) {
6065 $ table ->dropIndex ('tasks_is_active_idx ' );
6166 $ table ->dropIndex ('tasks_dont_overlap_idx ' );
You can’t perform that action at this time.
0 commit comments