From 38573f1bdc8b978f40af874af62bd1f7ec83a65c Mon Sep 17 00:00:00 2001 From: bernardhanna Date: Wed, 25 Jun 2025 10:23:36 +0100 Subject: [PATCH] Add UUID to failed jobs table migration --- .../migrations/2024_08_05_093711_add_uuid_failed_jobs.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/database/migrations/2024_08_05_093711_add_uuid_failed_jobs.php b/database/migrations/2024_08_05_093711_add_uuid_failed_jobs.php index 4dc735842..f5534df5a 100644 --- a/database/migrations/2024_08_05_093711_add_uuid_failed_jobs.php +++ b/database/migrations/2024_08_05_093711_add_uuid_failed_jobs.php @@ -11,11 +11,9 @@ */ public function up(): void { - if (Schema::hasTable('failed_jobs')) { + if (Schema::hasTable('failed_jobs') && !Schema::hasColumn('failed_jobs', 'uuid')) { Schema::table('failed_jobs', function (Blueprint $table) { - if (!Schema::hasColumn('failed_jobs', 'uuid')) { - $table->string('uuid')->after('id')->nullable()->unique(); - } + $table->string('uuid')->after('id')->nullable()->unique(); }); } }