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

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

@@ -0,0 +1,35 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class AddPostTypeTableMessageRule extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('message_rule', function (Blueprint $table) {
+            $table->string('post_type', 16)
+                ->default('')
+                ->after('activity_url')
+                ->comment('内容类型');
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('message_rule', function (Blueprint $table) {
+            //
+        });
+    }
+}