Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 25af2ee

Browse files
committed
Fixed migrations for tests
1 parent b5ddef3 commit 25af2ee

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function setUp(): void
7474

7575
$this->resetDatabase();
7676
$this->loadLaravelMigrations(['--database' => 'sqlite']);
77-
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
77+
$this->loadMigrationsFrom(__DIR__.'/database/migrations');
7878
$this->withFactories(__DIR__.'/database/factories');
7979

8080
$this->registerManagers();
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
class CreateWebSocketsStatisticsEntriesTable extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
Schema::create('websockets_statistics_entries', function (Blueprint $table) {
17+
$table->increments('id');
18+
$table->string('app_id');
19+
$table->integer('peak_connections_count');
20+
$table->integer('websocket_messages_count');
21+
$table->integer('api_messages_count');
22+
$table->nullableTimestamps();
23+
});
24+
}
25+
26+
/**
27+
* Reverse the migrations.
28+
*
29+
* @return void
30+
*/
31+
public function down()
32+
{
33+
Schema::dropIfExists('websockets_statistics_entries');
34+
}
35+
}

0 commit comments

Comments
 (0)