Closed
Description
Symfony version(s) affected: 4.4
Description
I think there is a BC break in #33169. On mysql, the lifetime column has been for the last few years a MEDIUMINT column.
The new version with time() + $maxlifetime
instead of $maxlifetime
is higher than the MEDIUMINT mysql limit.
When upgrading from symfony 4.3 to 4.4 with an existing database, we have the error SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'sess_lifetime' at row 1
I saw the creation of the session table has been fixed 5 days ago in #34410 but that does not fix existing databases.
Is it normal we need to create manually a sql migration for a breaking database schema change, which is not really mentioned in UPGRADE-4.4.md ?