From 3e48d2eee1d2af42aa777fd5e461fa570762732e Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Fri, 21 Nov 2008 18:19:30 +0000
Subject: - Increase speed of session destroy and garbage clean up - Fix
 session timeout when DB server got clock skew (#1485490)

---
 SQL/mysql.initial.sql | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'SQL/mysql.initial.sql')

diff --git a/SQL/mysql.initial.sql b/SQL/mysql.initial.sql
index c71894257..07f127cce 100644
--- a/SQL/mysql.initial.sql
+++ b/SQL/mysql.initial.sql
@@ -73,7 +73,8 @@ CREATE TABLE `session` (
   `changed` datetime NOT NULL default '0000-00-00 00:00:00',
   `ip` VARCHAR(40) NOT NULL default '',
   `vars` text NOT NULL,
-  PRIMARY KEY  (`sess_id`)
+  PRIMARY KEY  (`sess_id`),
+  INDEX `changed_index` (`changed`) 
 );
 
 -- --------------------------------------------------------
-- 
cgit v1.2.3

