gq 8 rokov pred
rodič
commit
49b9e9401e

+ 1 - 1
server/app/Http/Controllers/Api/V1/HomeController.php

xqd
@@ -171,7 +171,7 @@ class HomeController extends Controller
         }
     }
     /**
-     * @api {post} /api/user/interaction 互动
+     * @api {get} /api/user/interaction 互动
      * @apiDescription 互动
      * @apiGroup Home
      * @apiPermission Passport

+ 33 - 0
server/database/migrations/2017_06_21_173414_add_birthday_city_to_user_info.php

xqd
@@ -0,0 +1,33 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class AddBirthdayCityToUserInfo extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('user_info', function (Blueprint $table) {
+            $table->date('birthday')->default('2017-06-21')->after('address');
+            $table->string('city')->comment('城市')->default('')->after('address');
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('user_info', function (Blueprint $table) {
+            //
+        });
+    }
+}