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

Schema check breaks #454

Merged
merged 6 commits into from Aug 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 3 additions & 6 deletions src/WebSocketsServiceProvider.php
Expand Up @@ -15,7 +15,6 @@
use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManagers\ArrayChannelManager;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;

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

if (! Schema::hasTable('websockets_statistics_entries')) {
$this->publishes([
__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'),
], 'migrations');
}
$this->publishes([
__DIR__.'/../database/migrations/create_websockets_statistics_entries_table.php.stub' => database_path('migrations/0000_00_00_000000_create_websockets_statistics_entries_table.php'),
], 'migrations');

$this
->registerRoutes()
Expand Down