Skip to content

Commit 2f974bb

Browse files
committed
Updating statements, now that we're not overriding the names
1 parent fd8b552 commit 2f974bb

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

cookbook/configuration/pdo_session_storage.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,10 @@ following (MySQL):
221221
.. code-block:: sql
222222
223223
CREATE TABLE `session` (
224-
`session_id` VARBINARY(128) NOT NULL PRIMARY KEY,
225-
`session_data` BLOB NOT NULL,
226-
`session_time` INTEGER UNSIGNED NOT NULL,
227-
`session_lifetime` MEDIUMINT NOT NULL
224+
`sess_id` VARBINARY(128) NOT NULL PRIMARY KEY,
225+
`sess_data` BLOB NOT NULL,
226+
`sess_time` INTEGER UNSIGNED NOT NULL,
227+
`sess_lifetime` MEDIUMINT NOT NULL
228228
) COLLATE utf8_bin, ENGINE = InnoDB;
229229
230230
PostgreSQL
@@ -235,10 +235,10 @@ For PostgreSQL, the statement should look like this:
235235
.. code-block:: sql
236236
237237
CREATE TABLE session (
238-
session_id VARCHAR(128) NOT NULL PRIMARY KEY,
239-
session_data BYTEA NOT NULL,
240-
session_time INTEGER NOT NULL,
241-
session_lifetime INTEGER NOT NULL
238+
sess_id VARCHAR(128) NOT NULL PRIMARY KEY,
239+
sess_data BYTEA NOT NULL,
240+
sess_time INTEGER NOT NULL,
241+
sess_lifetime INTEGER NOT NULL
242242
);
243243
244244
Microsoft SQL Server
@@ -249,12 +249,12 @@ For MSSQL, the statement might look like the following:
249249
.. code-block:: sql
250250
251251
CREATE TABLE [dbo].[session](
252-
[session_id] [nvarchar](255) NOT NULL,
253-
[session_data] [ntext] NOT NULL,
254-
[session_time] [int] NOT NULL,
255-
[session_lifetime] [int] NOT NULL,
252+
[sess_id] [nvarchar](255) NOT NULL,
253+
[sess_data] [ntext] NOT NULL,
254+
[sess_time] [int] NOT NULL,
255+
[sess_lifetime] [int] NOT NULL,
256256
PRIMARY KEY CLUSTERED(
257-
[session_id] ASC
257+
[sess_id] ASC
258258
) WITH (
259259
PAD_INDEX = OFF,
260260
STATISTICS_NORECOMPUTE = OFF,

0 commit comments

Comments
 (0)