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

Commit 1227bc8

Browse files
authored
Merge pull request #454 from RohanSakhale/schema-check-breaks
Schema check breaks
2 parents bce93ad + a18ef0c commit 1227bc8

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/WebSocketsServiceProvider.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManagers\ArrayChannelManager;
1616
use Illuminate\Support\Facades\Gate;
1717
use Illuminate\Support\Facades\Route;
18-
use Illuminate\Support\Facades\Schema;
1918
use Illuminate\Support\ServiceProvider;
2019

2120
class WebSocketsServiceProvider extends ServiceProvider
@@ -26,11 +25,9 @@ public function boot()
2625
__DIR__.'/../config/websockets.php' => base_path('config/websockets.php'),
2726
], 'config');
2827

29-
if (! Schema::hasTable('websockets_statistics_entries')) {
30-
$this->publishes([
31-
__DIR__.'/../database/migrations/create_websockets_statistics_entries_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_websockets_statistics_entries_table.php'),
32-
], 'migrations');
33-
}
28+
$this->publishes([
29+
__DIR__.'/../database/migrations/create_websockets_statistics_entries_table.php.stub' => database_path('migrations/0000_00_00_000000_create_websockets_statistics_entries_table.php'),
30+
], 'migrations');
3431

3532
$this
3633
->registerRoutes()

0 commit comments

Comments
 (0)