Skip to content

Commit 48cf85d

Browse files
jessarchertimacdonald
authored andcommitted
Fix job updating with MySQL 5.7
1 parent 93d1358 commit 48cf85d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

database/migrations/2023_06_07_000001_create_pulse_tables.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function up(): void
2525
// - We may need to keep a hashed version of the text columns to index and group by.
2626
// - Do another pass at the indexes to ensure that they are optimized correctly.
2727
Schema::create('pulse_system_stats', function (Blueprint $table) {
28-
$table->timestamp('date');
28+
$table->datetime('date');
2929
$table->string('server');
3030
$table->unsignedTinyInteger('cpu_percent');
3131
$table->unsignedInteger('memory_used');
@@ -36,7 +36,7 @@ public function up(): void
3636
});
3737

3838
Schema::create('pulse_requests', function (Blueprint $table) {
39-
$table->timestamp('date');
39+
$table->datetime('date');
4040
$table->string('user_id')->nullable();
4141
$table->string('route');
4242
$table->unsignedInteger('duration');
@@ -46,7 +46,7 @@ public function up(): void
4646
});
4747

4848
Schema::create('pulse_exceptions', function (Blueprint $table) {
49-
$table->timestamp('date');
49+
$table->datetime('date');
5050
$table->string('user_id')->nullable();
5151
$table->string('class');
5252
$table->string('location');
@@ -55,7 +55,7 @@ public function up(): void
5555
});
5656

5757
Schema::create('pulse_slow_queries', function (Blueprint $table) {
58-
$table->timestamp('date');
58+
$table->datetime('date');
5959
$table->string('user_id')->nullable();
6060
$table->string('sql');
6161
$table->unsignedInteger('duration');
@@ -64,7 +64,7 @@ public function up(): void
6464
});
6565

6666
Schema::create('pulse_jobs', function (Blueprint $table) {
67-
$table->timestamp('date');
67+
$table->datetime('date');
6868
$table->string('user_id')->nullable();
6969
$table->string('job');
7070
$table->uuid('job_uuid');
@@ -78,23 +78,23 @@ public function up(): void
7878
});
7979

8080
Schema::create('pulse_cache_interactions', function (Blueprint $table) {
81-
$table->timestamp('date');
81+
$table->datetime('date');
8282
$table->string('key');
8383
$table->boolean('hit');
8484
$table->string('user_id')->nullable();
8585
// TODO: indexes?
8686
});
8787

8888
Schema::create('pulse_outgoing_requests', function (Blueprint $table) {
89-
$table->timestamp('date');
89+
$table->datetime('date');
9090
$table->string('uri');
9191
$table->unsignedInteger('duration');
9292
$table->string('user_id')->nullable();
9393
// TODO: indexes?
9494
});
9595

9696
Schema::create('pulse_queue_sizes', function (Blueprint $table) {
97-
$table->timestamp('date');
97+
$table->datetime('date');
9898
$table->string('connection');
9999
$table->string('queue');
100100
$table->unsignedInteger('size');

0 commit comments

Comments
 (0)