From 666ecb04f270256b36683f4d159aa3b746bac8e8 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Thu, 10 Sep 2020 23:26:32 +0300 Subject: [PATCH] wip --- composer.json | 1 - tests/TestCase.php | 2 +- ...te_websockets_statistics_entries_table.php | 35 +++++++++++++++++++ 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 tests/database/migrations/0000_00_00_000000_create_websockets_statistics_entries_table.php diff --git a/composer.json b/composer.json index dc8968a..29782eb 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,6 @@ "cboden/ratchet": "^0.4.1", "clue/buzz-react": "^2.5", "clue/redis-react": "^2.3", - "doctrine/dbal": "^2.0", "evenement/evenement": "^2.0|^3.0", "facade/ignition-contracts": "^1.0", "guzzlehttp/psr7": "^1.5", diff --git a/tests/TestCase.php b/tests/TestCase.php index e62b10d..668e92b 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -74,7 +74,7 @@ abstract class TestCase extends Orchestra $this->resetDatabase(); $this->loadLaravelMigrations(['--database' => 'sqlite']); - $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); + $this->loadMigrationsFrom(__DIR__.'/database/migrations'); $this->withFactories(__DIR__.'/database/factories'); $this->registerManagers(); diff --git a/tests/database/migrations/0000_00_00_000000_create_websockets_statistics_entries_table.php b/tests/database/migrations/0000_00_00_000000_create_websockets_statistics_entries_table.php new file mode 100644 index 0000000..0989f28 --- /dev/null +++ b/tests/database/migrations/0000_00_00_000000_create_websockets_statistics_entries_table.php @@ -0,0 +1,35 @@ +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'); + } +}