xielin 5 年 前
コミット
601ce94df9
共有1 個のファイルを変更した36 個の追加0 個の削除を含む
  1. 36 0
      database/migrations/2019_10_16_075004_add_column_is_main_to_interest_circle_message_pictures.php

+ 36 - 0
database/migrations/2019_10_16_075004_add_column_is_main_to_interest_circle_message_pictures.php

@@ -0,0 +1,36 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class AddColumnIsMainToInterestCircleMessagePictures extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('interest_circle_message_pictures', function (Blueprint $table) {
+            //
+            $table->integer('is_main')
+                ->after('patch_num')
+                ->default(0)
+                ->comment('是否主数据,主要用于分页');
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('interest_circle_message_pictures', function (Blueprint $table) {
+            //
+        });
+    }
+}