zhangchangchun 5 年之前
父节点
当前提交
bcffedf756

+ 1 - 1
database/migrations/2019_06_01_074135_create_behavior_table.php

@@ -27,7 +27,7 @@ class CreateBehaviorTable extends Migration
             $table->tinyInteger('is_open')->comment('是否开启:0.关闭;1.开启');
             $table->date('behavioral_cycle_start_time')->nullable()->comment('行为时间周期开始时间');
             $table->date('behavioral_cycle_end_time')->nullable()->comment('行为时间周期结束时间');
-            $table->json('allotted_quantity_rule')->nullable()->comment('彩虹豆分配规则');
+            //$table->json('allotted_quantity_rule')->nullable()->comment('彩虹豆分配规则');
             $table->string('behavior_identification')->nullable()->comment('行为标识');//英文的行为名称
             $table->integer('trigger_times')->nullable()->comment('触发次数');
             $table->integer('effective_trigger')->nullable()->comment('有效触发次数');

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

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