Skip to content

Commit 506a2cd

Browse files
Fix session lifetime index name in examples
Session index is generated using the lifetime column name, however current the examples are prepending 'sessions' to the generated index name. This results in a migration being created to rename `sessions_sess_lifetime_idx` to `sess_lifetime_idx` after creating the table using the SQL in the docs.
1 parent f0897ca commit 506a2cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

session.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ MariaDB/MySQL
975975
`sess_data` BLOB NOT NULL,
976976
`sess_lifetime` INTEGER UNSIGNED NOT NULL,
977977
`sess_time` INTEGER UNSIGNED NOT NULL,
978-
INDEX `sessions_sess_lifetime_idx` (`sess_lifetime`)
978+
INDEX `sess_lifetime_idx` (`sess_lifetime`)
979979
) COLLATE utf8mb4_bin, ENGINE = InnoDB;
980980
981981
.. note::
@@ -996,7 +996,7 @@ PostgreSQL
996996
sess_lifetime INTEGER NOT NULL,
997997
sess_time INTEGER NOT NULL
998998
);
999-
CREATE INDEX sessions_sess_lifetime_idx ON sessions (sess_lifetime);
999+
CREATE INDEX sess_lifetime_idx ON sessions (sess_lifetime);
10001000
10011001
Microsoft SQL Server
10021002
++++++++++++++++++++
@@ -1008,7 +1008,7 @@ Microsoft SQL Server
10081008
sess_data NVARCHAR(MAX) NOT NULL,
10091009
sess_lifetime INTEGER NOT NULL,
10101010
sess_time INTEGER NOT NULL,
1011-
INDEX sessions_sess_lifetime_idx (sess_lifetime)
1011+
INDEX sess_lifetime_idx (sess_lifetime)
10121012
);
10131013
10141014
.. _session-database-mongodb:

0 commit comments

Comments
 (0)