浏览代码

不喜欢

wzq 5 年之前
父节点
当前提交
4ab35cdd15
共有 1 个文件被更改,包括 38 次插入0 次删除
  1. 38 0
      database/migrations/2019_06_15_160843_create_table_post_dislike.php

+ 38 - 0
database/migrations/2019_06_15_160843_create_table_post_dislike.php

@@ -0,0 +1,38 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class CreateTablePostDislike extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::create('post_dislike', function (Blueprint $table) {
+            $table->bigIncrements('id');
+
+            $table->integer('post_id')
+                ->comment('内容id');
+
+            $table->integer('uid')
+                ->comment('用户uid');
+
+            $table->timestamps();
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::dropIfExists('post_dislike');
+    }
+}