LD 5 年 前
コミット
8a8ef21f4a

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

@@ -18,7 +18,7 @@ class CreateStationTasksTable extends Migration
             $table->integer('station_id');
             $table->integer('station_type_id')->nullable()->index();
             $table->enum('status',['待处理','挂起','处理中','完成','异常','取消'])->index();
-            $table->index('station_id','station_type_id','status');
+            $table->index(['station_id','station_type_id','status']);
             $table->timestamps();
         });
     }

+ 32 - 0
database/migrations/2020_12_07_143049_station_task_children.php

@@ -0,0 +1,32 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class StationTaskChildren extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('name', function (Blueprint $table) {
+            //
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('name', function (Blueprint $table) {
+            //
+        });
+    }
+}