laravel-websockets/database/migrations/create_websockets_statistic...

31 lines
802 B
Plaintext
Raw Normal View History

2018-12-03 10:58:42 +00:00
<?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');
2018-12-03 11:01:19 +00:00
$table->string('app_id');
$table->integer('peak_connections');
$table->integer('websocket_message_count');
$table->integer('api_message_count');
2018-12-03 10:58:42 +00:00
$table->nullableTimestamps();
});
}
/**
* Reverse the migrations.
*/
public function down()
{
Schema::dropIfExists('websockets_statistics_entries');
}
}