gq преди 7 години
родител
ревизия
1740966e9e
променени са 1 файла, в които са добавени 32 реда и са изтрити 0 реда
  1. 32 0
      server/database/migrations/2017_11_02_210821_add_title_to_account_logs_table.php

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

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