Skip to content

Commit 6d0f066

Browse files
whataboutpereirajaviereguiluz
authored andcommitted
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 aa7098c commit 6d0f066

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
@@ -966,7 +966,7 @@ MariaDB/MySQL
966966
`sess_data` BLOB NOT NULL,
967967
`sess_lifetime` INTEGER UNSIGNED NOT NULL,
968968
`sess_time` INTEGER UNSIGNED NOT NULL,
969-
INDEX `sessions_sess_lifetime_idx` (`sess_lifetime`)
969+
INDEX `sess_lifetime_idx` (`sess_lifetime`)
970970
) COLLATE utf8mb4_bin, ENGINE = InnoDB;
971971
972972
.. note::
@@ -987,7 +987,7 @@ PostgreSQL
987987
sess_lifetime INTEGER NOT NULL,
988988
sess_time INTEGER NOT NULL
989989
);
990-
CREATE INDEX sessions_sess_lifetime_idx ON sessions (sess_lifetime);
990+
CREATE INDEX sess_lifetime_idx ON sessions (sess_lifetime);
991991
992992
Microsoft SQL Server
993993
++++++++++++++++++++
@@ -999,7 +999,7 @@ Microsoft SQL Server
999999
sess_data NVARCHAR(MAX) NOT NULL,
10001000
sess_lifetime INTEGER NOT NULL,
10011001
sess_time INTEGER NOT NULL,
1002-
INDEX sessions_sess_lifetime_idx (sess_lifetime)
1002+
INDEX sess_lifetime_idx (sess_lifetime)
10031003
);
10041004
10051005
.. _session-database-mongodb:

0 commit comments

Comments
 (0)