We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9710d9a commit 2c2d8aeCopy full SHA for 2c2d8ae
database/migrations/2023_06_07_000001_create_pulse_tables.php
@@ -1,6 +1,7 @@
1
<?php
2
3
use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Support\Facades\Config;
5
use Illuminate\Support\Facades\Schema;
6
use Laravel\Pulse\Support\PulseMigration;
7
@@ -11,7 +12,7 @@
11
12
*/
13
public function up(): void
14
{
- if (! $this->shouldRun()) {
15
+ if (! $this->shouldRun() || ! Config::get('pulse.enabled')) {
16
return;
17
}
18
@@ -77,6 +78,10 @@ public function up(): void
77
78
79
public function down(): void
80
81
82
+ return;
83
+ }
84
+
85
Schema::dropIfExists('pulse_values');
86
Schema::dropIfExists('pulse_entries');
87
Schema::dropIfExists('pulse_aggregates');
0 commit comments