LD il y a 5 ans
Parent
commit
4c439bf231

+ 1 - 1
database/migrations/2020_12_07_111922_add_column_handled_amount_of_station_task_commodities.php

@@ -14,7 +14,7 @@ class AddColumnHandledAmountOfStationTaskCommodities extends Migration
     public function up()
     {
         Schema::table('station_task_commodities', function (Blueprint $table) {
-            $table->integer('handled_amount')->default(0);
+            $table->integer('handled_amount')->default(0)->after('amount');
         });
     }
 

+ 9 - 0
database/migrations/2020_12_07_114158_create_station_task_children.php

@@ -39,6 +39,15 @@ class CreateStationTaskChildren extends Migration
      */
     public function down()
     {
+        Schema::table('station_task_batches', function (Blueprint $table) {
+            $table->integer('station_id')->index();
+        });
+        Schema::table('station_task_commodities', function (Blueprint $table) {
+            $table->integer('station_id')->index();
+        });
+        Schema::table('station_task_material_boxes', function (Blueprint $table) {
+            $table->integer('station_id')->index();
+        });
         Schema::dropIfExists('station_task_children');
     }
 }