Skip to content

Commit 670e1bd

Browse files
committed
minor #13765 Update column type for MySQL sessions table (beejaz)
This PR was merged into the 4.4 branch. Discussion ---------- Update column type for MySQL sessions table This page hasnt been updated with this fix #12641 for "Preparing the Database to Store Sessions" on MySQL db, causing error: SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'sess_lifetime' at row 1 Its fixed by changing MEDIUMINT to INTEGER UNSIGNED for sess_lifetime column. Its the same miss in 4.4, 5.0 and 5.1 Commits ------- 6565de2 Update column type for MySQL sessions table
2 parents 8cb2e35 + 6565de2 commit 670e1bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

session/database.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ MySQL
389389
CREATE TABLE `sessions` (
390390
`sess_id` VARBINARY(128) NOT NULL PRIMARY KEY,
391391
`sess_data` BLOB NOT NULL,
392-
`sess_lifetime` MEDIUMINT NOT NULL,
392+
`sess_lifetime` INTEGER UNSIGNED NOT NULL,
393393
`sess_time` INTEGER UNSIGNED NOT NULL
394394
) COLLATE utf8mb4_bin, ENGINE = InnoDB;
395395

0 commit comments

Comments
 (0)