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

CreateWebSocketsStatisticsEntriesTable::down()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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