瀏覽代碼

新增字段

durong 5 年之前
父節點
當前提交
f1fc04fa88

+ 33 - 0
database/migrations/2019_06_13_174844_add_comment_id_to_comment_account_record_table.php

@@ -0,0 +1,33 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class AddCommentIdToCommentAccountRecordTable extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('comment_account_record', function (Blueprint $table) {
+            $table->integer('current_comment_id')->nullable()->comment('当前评论ID');
+            $table->integer('superior_comment_id')->nullable()->comment('上级评论ID');
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('comment_account_record', function (Blueprint $table) {
+            //
+        });
+    }
+}