xielin před 5 roky
rodič
revize
a95fedfcd5

+ 37 - 0
database/migrations/2019_10_16_004919_add_column_msg_id_to_interest_circle_message_records.php

@@ -0,0 +1,37 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class AddColumnMsgIdToInterestCircleMessageRecords extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('interest_circle_message_records', function (Blueprint $table) {
+            //
+            $table->integer('msg_id')
+                ->after('uid')
+                ->default(0)
+                ->comment('提问id');
+        });
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('interest_circle_message_records', function (Blueprint $table) {
+            //
+        });
+    }
+}