gq 7 years ago
parent
commit
7f4dcc8df6

+ 32 - 0
server/database/migrations/2017_11_03_092802_add_dream_id_to_account_logs.php

xqd
@@ -0,0 +1,32 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class AddDreamIdToAccountLogs extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('account_logs', function (Blueprint $table) {
+            $table->integer('dream_id')->nullable()->comment('梦想id')->after('title');
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('account_logs', function (Blueprint $table) {
+            //
+        });
+    }
+}