wip
This commit is contained in:
parent
1c74e28a8a
commit
666ecb04f2
|
|
@ -34,7 +34,6 @@
|
||||||
"cboden/ratchet": "^0.4.1",
|
"cboden/ratchet": "^0.4.1",
|
||||||
"clue/buzz-react": "^2.5",
|
"clue/buzz-react": "^2.5",
|
||||||
"clue/redis-react": "^2.3",
|
"clue/redis-react": "^2.3",
|
||||||
"doctrine/dbal": "^2.0",
|
|
||||||
"evenement/evenement": "^2.0|^3.0",
|
"evenement/evenement": "^2.0|^3.0",
|
||||||
"facade/ignition-contracts": "^1.0",
|
"facade/ignition-contracts": "^1.0",
|
||||||
"guzzlehttp/psr7": "^1.5",
|
"guzzlehttp/psr7": "^1.5",
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ abstract class TestCase extends Orchestra
|
||||||
|
|
||||||
$this->resetDatabase();
|
$this->resetDatabase();
|
||||||
$this->loadLaravelMigrations(['--database' => 'sqlite']);
|
$this->loadLaravelMigrations(['--database' => 'sqlite']);
|
||||||
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
|
$this->loadMigrationsFrom(__DIR__.'/database/migrations');
|
||||||
$this->withFactories(__DIR__.'/database/factories');
|
$this->withFactories(__DIR__.'/database/factories');
|
||||||
|
|
||||||
$this->registerManagers();
|
$this->registerManagers();
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class CreateWebSocketsStatisticsEntriesTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('websockets_statistics_entries', function (Blueprint $table) {
|
||||||
|
$table->increments('id');
|
||||||
|
$table->string('app_id');
|
||||||
|
$table->integer('peak_connections_count');
|
||||||
|
$table->integer('websocket_messages_count');
|
||||||
|
$table->integer('api_messages_count');
|
||||||
|
$table->nullableTimestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('websockets_statistics_entries');
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue