Skip to content

3.0: lift MySQL's year-2038 limit (TIMESTAMP(6) to DATETIME(6)) #91

Closed

Description

@CodingAnarchy

Every MySQL timestamp column uses TIMESTAMP(6) (migrations 001, 003–006, 011, 013, 015 and 017). It ends at 2038-01-19 03:14:07 UTC. Since 2.0, jobs scheduled later are rejected with an error (TIMESTAMP_MAX_SQL in src/queue/mysql.rs), so a job scheduled about 12 years out fails today.

The library already reads and writes UTC everywhere (UTC_TIMESTAMP(6)), so DATETIME(6) is safe. Add a 3.0 migration that converts the columns, keeping the migrations idempotent, and remove the 2038 checks. Converting rewrites the big tables, so the upgrade notes must say how long it takes. Test it with an upgrade from a 2.x database.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions