浏览代码

Add new migration

Daniel Supernault 6 年之前
父节点
当前提交
758677ada4
共有 1 个文件被更改,包括 30 次插入0 次删除
  1. 30 0
      database/migrations/2019_02_08_192219_create_websockets_statistics_entries_table.php

+ 30 - 0
database/migrations/2019_02_08_192219_create_websockets_statistics_entries_table.php

@@ -0,0 +1,30 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class CreateWebSocketsStatisticsEntriesTable extends Migration
+{
+    /**
+     * Run the migrations.
+     */
+    public function up()
+    {
+        Schema::create('websockets_statistics_entries', function (Blueprint $table) {
+            $table->increments('id');
+            $table->string('app_id');
+            $table->integer('peak_connection_count');
+            $table->integer('websocket_message_count');
+            $table->integer('api_message_count');
+            $table->nullableTimestamps();
+        });
+    }
+    /**
+     * Reverse the migrations.
+     */
+    public function down()
+    {
+        Schema::dropIfExists('websockets_statistics_entries');
+    }
+}