ソースを参照

推荐分类字段

wzq 5 年 前
コミット
59c864ca87
共有1 個のファイルを変更した35 個の追加0 個の削除を含む
  1. 35 0
      database/migrations/2019_09_04_143108_create_table_category_suggest.php

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