summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries/sessions.rst
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-01-20 16:31:29 +0100
committerAndrey Andreev <narf@devilix.net>2015-01-20 16:31:29 +0100
commit3053b81940f2b5e8f608290a43a77886ebc70ae4 (patch)
treee49da88ab09e795e8c8fd4e115eff75244e565ea /user_guide_src/source/libraries/sessions.rst
parent2c245616a7bc89e842b4f39693751c3d28c034f2 (diff)
[ci skip] Fix docs about ci_sessions table
Close #3486
Diffstat (limited to 'user_guide_src/source/libraries/sessions.rst')
-rw-r--r--user_guide_src/source/libraries/sessions.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/user_guide_src/source/libraries/sessions.rst b/user_guide_src/source/libraries/sessions.rst
index af8c1a8d2..2324d9100 100644
--- a/user_guide_src/source/libraries/sessions.rst
+++ b/user_guide_src/source/libraries/sessions.rst
@@ -554,18 +554,18 @@ And then of course, create the database table ...
For MySQL::
CREATE TABLE IF NOT EXISTS `ci_sessions` (
- `session_id` varchar(40) NOT NULL,
+ `id` varchar(40) NOT NULL,
`ip_address` varchar(45) NOT NULL,
`timestamp` int(10) unsigned DEFAULT 0 NOT NULL,
`data` blob DEFAULT '' NOT NULL,
- PRIMARY KEY (session_id, ip_address),
+ PRIMARY KEY (id, ip_address),
KEY `ci_sessions_timestamp` (`timestamp`)
);
For PostgreSQL::
CREATE TABLE "ci_sessions" (
- "session_id" varchar(40) NOT NULL,
+ "id" varchar(40) NOT NULL,
"ip_address" varchar(45) NOT NULL,
"timestamp" bigint DEFAULT 0 NOT NULL,
"data" text DEFAULT '' NOT NULL,
@@ -578,7 +578,7 @@ However, if you want to turn on the *sess_match_ip* setting, you should
also do the following, after creating the table::
// Works both on MySQL and PostgreSQL
- ALTER TABLE ci_sessions ADD CONSTRAINT ci_sessions_id_ip UNIQUE (session_id, ip_address);
+ ALTER TABLE ci_sessions ADD CONSTRAINT ci_sessions_id_ip UNIQUE (id, ip_address);
.. important:: Only MySQL and PostgreSQL databases are officially
supported, due to lack of advisory locking mechanisms on other