Skip to content

Commit 294a237

Browse files
committed
Update notes about database column
1 parent c35ffd9 commit 294a237

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

guide/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ A basic example of a table for sessions is below:
325325
.. code-block:: sql
326326
327327
CREATE TABLE `Sessions` (
328-
`id` varchar(128) NOT NULL,
328+
`id` char(32) NOT NULL,
329329
`timestamp` timestamp NOT NULL,
330330
`data` blob NOT NULL,
331331
`ip` varchar(45) NOT NULL, -- optional

src/SaveHandlers/DatabaseHandler.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
* ```sql
2525
* CREATE TABLE `Sessions` (
26-
* `id` varchar(128) NOT NULL,
26+
* `id` char(32) NOT NULL,
2727
* `timestamp` timestamp NOT NULL,
2828
* `data` blob NOT NULL,
2929
* `ip` varchar(45) NOT NULL, -- optional
@@ -35,8 +35,6 @@
3535
* );
3636
* ```
3737
*
38-
* NOTE: As of PHP 8.4 the id column can be `char(32)`.
39-
*
4038
* @package session
4139
*/
4240
class DatabaseHandler extends SaveHandler

0 commit comments

Comments
 (0)