浏览代码

内容类型

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