tinyint's range is from 0 to 255. That's why you are getting an error when trying to update it with 1264. I suggest you to change the column type to smallint (from -32,768 to 32,767) or int.

Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi guys, since 1 week I'm having this issue on production:
production.ERROR: SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'attempts' at row 1 (SQL: updatejobssetreserved_at= 1655975272,attempts= 256 whereid= 742) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 22003): SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'attempts' at row 1 (SQL: updatejobssetreserved_at= 1655975272,attempts= 256 whereid= 742) at /var/www/html/b2b2c-api/vendor/laravel/framework/src/Illuminate/Database/Connection.php:712)
I don't know if I have to change the column 'attempts' type because right now it's tiny int or do something else.
What do you suggests about. Thanks!
tinyint's range is from 0 to 255. That's why you are getting an error when trying to update it with 1264. I suggest you to change the column type to smallint (from -32,768 to 32,767) or int.

Please or to participate in this conversation.