Skip to content

Commit 2c2d8ae

Browse files
committed
Disable pulse in Unit Test
1 parent 9710d9a commit 2c2d8ae

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: database/migrations/2023_06_07_000001_create_pulse_tables.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
use Illuminate\Database\Schema\Blueprint;
4+
use Illuminate\Support\Facades\Config;
45
use Illuminate\Support\Facades\Schema;
56
use Laravel\Pulse\Support\PulseMigration;
67

@@ -11,7 +12,7 @@
1112
*/
1213
public function up(): void
1314
{
14-
if (! $this->shouldRun()) {
15+
if (! $this->shouldRun() || ! Config::get('pulse.enabled')) {
1516
return;
1617
}
1718

@@ -77,6 +78,10 @@ public function up(): void
7778
*/
7879
public function down(): void
7980
{
81+
if (! $this->shouldRun() || ! Config::get('pulse.enabled')) {
82+
return;
83+
}
84+
8085
Schema::dropIfExists('pulse_values');
8186
Schema::dropIfExists('pulse_entries');
8287
Schema::dropIfExists('pulse_aggregates');

0 commit comments

Comments
 (0)