Completed
Push — master ( 1227bc...65ae99 )
by Alexandru
01:22
created

CreateWebSocketsStatisticsEntriesTable   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 24
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 11 1
A down() 0 4 1
1
<?php
2
3
use Illuminate\Support\Facades\Schema;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Database\Migrations\Migration;
6
7
class CreateWebSocketsStatisticsEntriesTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     */
12
    public function up()
13
    {
14
        Schema::create('websockets_statistics_entries', function (Blueprint $table) {
15
            $table->increments('id');
16
            $table->string('app_id');
17
            $table->integer('peak_connection_count');
18
            $table->integer('websocket_message_count');
19
            $table->integer('api_message_count');
20
            $table->nullableTimestamps();
21
        });
22
    }
23
    /**
24
     * Reverse the migrations.
25
     */
26
    public function down()
27
    {
28
        Schema::dropIfExists('websockets_statistics_entries');
29
    }
30
}
31