laravel / horizon

Dashboard and code-driven configuration for Laravel queues.
https://laravel.com/docs/horizon
MIT License
3.83k stars 643 forks source link

failed jobs insert uuid column not found #1402

Closed sts-ryan-holton closed 5 months ago

sts-ryan-holton commented 5 months ago

Horizon Version

5.23.2

Laravel Version

11.1.0

PHP Version

8.3.*

Redis Driver

PhpRedis

Redis Version

latest

Database Driver & Version

No response

Description

When a job fails, after upgrading to Laravel 11, failed jobs throws Sentry errors relating to my failed jobs table being unable to find a column named uuid. I do not have a column that's uuid, I have id which is a bigint.

Column not found: 1054 Unknown column 'uuid' in 'field list' (Connection: mysql, SQL: insert into failed_jobs

Steps To Reproduce

My failed jobs schema:

        Schema::create('failed_jobs', function (Blueprint $table) {
            $table->id();
            $table->text('connection');
            $table->text('queue');
            $table->longText('payload');
            $table->longText('exception');
            $table->timestamp('failed_at')->useCurrent();
        });
driesvints commented 5 months ago

This table should have a uuid column: https://github.com/laravel/laravel/blob/11.x/database/migrations/0001_01_01_000002_create_jobs_table.php#L39