Kaynağa Gözat

Merge branch 'develop' of http://git.caihongxingqiu.net/rainbow/community-manage into develop

durong 5 yıl önce
ebeveyn
işleme
77b74c10f7

+ 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');
+    }
+}