wesley 6 years ago
parent
commit
cae78f54f8

+ 33 - 0
database/migrations/2018_11_28_082433_add_call_id_to_call_records.php

xqd
@@ -0,0 +1,33 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class AddCallIdToCallRecords extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('call_records', function (Blueprint $table) {
+            $table->integer('cdr_id')->after('ip')->comment('AI_CDR id');
+            $table->string('call_id',128)->after('cdr_id')->comment('呼叫ID');
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('call_records', function (Blueprint $table) {
+            //
+        });
+    }
+}