From 375078e686a2374cf1aebd16a394e0044cf15f24 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Fri, 11 Sep 2020 08:16:53 +0300 Subject: [PATCH] doctrine/dbal --- composer.json | 1 + tests/TestCase.php | 2 +- ...te_websockets_statistics_entries_table.php | 35 ------------------- 3 files changed, 2 insertions(+), 36 deletions(-) delete mode 100644 tests/database/migrations/0000_00_00_000000_create_websockets_statistics_entries_table.php diff --git a/composer.json b/composer.json index 29782eb..dc8968a 100644 --- a/composer.json +++ b/composer.json @@ -34,6 +34,7 @@ "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 668e92b..e62b10d 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 deleted file mode 100644 index 0989f28..0000000 --- a/tests/database/migrations/0000_00_00_000000_create_websockets_statistics_entries_table.php +++ /dev/null @@ -1,35 +0,0 @@ -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'); - } -}