gq 7 年之前
父節點
當前提交
32af3f4bf5
共有 1 個文件被更改,包括 32 次插入0 次删除
  1. 32 0
      server/database/migrations/2017_10_30_144104_add_number_to__user_cash_out_table.php

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

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