Skip to content

Commit

Permalink
Always register migrations (#1119)
Browse files Browse the repository at this point in the history
I think we need to register migrations even if telescope is disabled so database would be ready when we switch state enable/disable. So there is no need to check and run migrations every time we enable telescope. It can be useful for CI/CD.
  • Loading branch information
MasterRO94 committed Aug 27, 2021
1 parent f284a03 commit 3261aff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TelescopeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class TelescopeServiceProvider extends ServiceProvider
*/
public function boot()
{
$this->registerMigrations();
$this->registerCommands();
$this->registerPublishing();

Expand All @@ -29,7 +30,6 @@ public function boot()

$this->registerRoutes();
$this->registerResources();
$this->registerMigrations();

Telescope::start($this->app);
Telescope::listenForStorageOpportunities($this->app);
Expand Down

0 comments on commit 3261aff

Please sign in to comment.