From 29bccbf72f35c2d15b296b68a4db3dec17b8976b Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 7 Jul 2024 22:09:15 +1000 Subject: [PATCH] Update laravel jobs/failed_jobs tables --- .../2019_01_24_142111_create_jobs_table.php | 16 ++++++---------- ..._01_24_175606_create_failed_jobs_table.php | 19 ++++++++----------- 2 files changed, 14 insertions(+), 21 deletions(-) diff --git a/database/migrations/2019_01_24_142111_create_jobs_table.php b/database/migrations/2019_01_24_142111_create_jobs_table.php index 58d7715..6098d9b 100644 --- a/database/migrations/2019_01_24_142111_create_jobs_table.php +++ b/database/migrations/2019_01_24_142111_create_jobs_table.php @@ -1,17 +1,15 @@ bigIncrements('id'); @@ -26,11 +24,9 @@ class CreateJobsTable extends Migration /** * Reverse the migrations. - * - * @return void */ - public function down() + public function down(): void { Schema::dropIfExists('jobs'); } -} +}; diff --git a/database/migrations/2019_01_24_175606_create_failed_jobs_table.php b/database/migrations/2019_01_24_175606_create_failed_jobs_table.php index d432dff..2891640 100644 --- a/database/migrations/2019_01_24_175606_create_failed_jobs_table.php +++ b/database/migrations/2019_01_24_175606_create_failed_jobs_table.php @@ -1,20 +1,19 @@ bigIncrements('id'); + $table->id(); + $table->string('uuid')->unique(); $table->text('connection'); $table->text('queue'); $table->longText('payload'); @@ -25,11 +24,9 @@ class CreateFailedJobsTable extends Migration /** * Reverse the migrations. - * - * @return void */ - public function down() + public function down(): void { Schema::dropIfExists('failed_jobs'); } -} +};