Browse Source

推荐分类字段

wzq 5 years ago
parent
commit
59c864ca87

+ 35 - 0
database/migrations/2019_09_04_143108_create_table_category_suggest.php

@@ -0,0 +1,35 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class CreateTableCategorySuggest extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::create('category_suggest', function (Blueprint $table) {
+            $table->bigIncrements('id');
+
+            $table->integer('category_id')
+                ->comment('话题分类id');
+
+            $table->timestamps();
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::dropIfExists('category_suggest');
+    }
+}