From ffb2f4e5292ea7cb4111c42179e66fcbee952ff9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Ribeiro?= Date: Mon, 12 Dec 2022 15:14:27 +0000 Subject: [PATCH] Fixed bug on Job Batchs Table (#45263) * Fixed bug on Batchs Jobs Table If the batch has more than 1000 errors the function Bus::findBatch() fails because the database cuts down the words when reach is limit and then the seventh argument returns null because can't be json decoded. * Update batches.stub Co-authored-by: Taylor Otwell --- src/Illuminate/Queue/Console/stubs/batches.stub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Queue/Console/stubs/batches.stub b/src/Illuminate/Queue/Console/stubs/batches.stub index 60be4d2b2ef1..c3ff23179138 100644 --- a/src/Illuminate/Queue/Console/stubs/batches.stub +++ b/src/Illuminate/Queue/Console/stubs/batches.stub @@ -19,7 +19,7 @@ return new class extends Migration $table->integer('total_jobs'); $table->integer('pending_jobs'); $table->integer('failed_jobs'); - $table->text('failed_job_ids'); + $table->longText('failed_job_ids'); $table->mediumText('options')->nullable(); $table->integer('cancelled_at')->nullable(); $table->integer('created_at');