11<?php
22
3- use Illuminate \Database \Migrations \Migration ;
4- use Illuminate \Database \Schema \Blueprint ;
53use Illuminate \Support \Facades \Schema ;
4+ use Illuminate \Database \Schema \Blueprint ;
5+ use Illuminate \Database \Migrations \Migration ;
66
77class AlterTasksTableAddAutoCleanupNumAndTypeFields extends Migration
88{
@@ -13,20 +13,20 @@ class AlterTasksTableAddAutoCleanupNumAndTypeFields extends Migration
1313 */
1414 public function up ()
1515 {
16- Schema::table (config ('totem.table_prefix ' ) . 'task_results ' , function (Blueprint $ table ) {
16+ Schema::table (config ('totem.table_prefix ' ). 'task_results ' , function (Blueprint $ table ) {
1717 $ table ->index ('task_id ' , 'task_id_idx ' );
1818 $ table ->index ('ran_at ' , 'ran_at_idx ' );
1919 $ table ->foreign ('task_id ' , 'task_id_fk ' )
2020 ->references ('task_id ' )->on ('tasks ' );
2121 });
2222
23- Schema::table (config ('totem.table_prefix ' ) . 'task_frequencies ' , function (Blueprint $ table ) {
23+ Schema::table (config ('totem.table_prefix ' ). 'task_frequencies ' , function (Blueprint $ table ) {
2424 $ table ->index ('task_id ' , 'task_id_idx ' );
2525 $ table ->foreign ('task_id ' , 'task_id_fk ' )
2626 ->references ('task_id ' )->on ('tasks ' );
2727 });
2828
29- Schema::table (config ('totem.table_prefix ' ) . 'tasks ' , function (Blueprint $ table ) {
29+ Schema::table (config ('totem.table_prefix ' ). 'tasks ' , function (Blueprint $ table ) {
3030 $ table ->index ('is_active ' , 'is_active_idx ' );
3131 $ table ->index ('dont_overlap ' , 'dont_overlap_idx ' );
3232 $ table ->index ('run_in_maintenance ' , 'run_in_maintenance_idx ' );
@@ -43,18 +43,18 @@ public function up()
4343 */
4444 public function down ()
4545 {
46- Schema::table (config ('totem.table_prefix ' ) . 'task_results ' , function (Blueprint $ table ) {
46+ Schema::table (config ('totem.table_prefix ' ). 'task_results ' , function (Blueprint $ table ) {
4747 $ table ->dropIndex ('task_id_idx ' );
4848 $ table ->dropIndex ('ran_at_idx ' );
4949 $ table ->dropForeign ('task_id_fk ' );
5050 });
5151
52- Schema::table (config ('totem.table_prefix ' ) . 'task_frequencies ' , function (Blueprint $ table ) {
52+ Schema::table (config ('totem.table_prefix ' ). 'task_frequencies ' , function (Blueprint $ table ) {
5353 $ table ->dropIndex ('task_id_idx ' );
5454 $ table ->dropForeign ('task_id_fk ' );
5555 });
5656
57- Schema::table (config ('totem.table_prefix ' ) . 'tasks ' , function (Blueprint $ table ) {
57+ Schema::table (config ('totem.table_prefix ' ). 'tasks ' , function (Blueprint $ table ) {
5858 $ table ->dropIndex ('is_active_idx ' );
5959 $ table ->dropIndex ('dont_overlap_idx ' );
6060 $ table ->dropIndex ('run_in_maintenance_idx ' );
0 commit comments