add index to failed jobs

This commit is contained in:
Taylor Otwell
2026-01-12 08:42:42 -06:00
parent cf85ab1ace
commit 36281b285a

View File

@@ -42,6 +42,8 @@ return new class extends Migration
$table->longText('payload');
$table->longText('exception');
$table->timestamp('failed_at')->useCurrent();
$table->index(['connection', 'queue', 'failed_at']);
});
}