From e00d46500c4740745ef34e70f5db783fae0a291c Mon Sep 17 00:00:00 2001
From: alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>
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)

git-svn-id: https://svn.roundcube.net/trunk@2076 208e9e7b-5314-0410-a742-e7e81cd9613c
---
 roundcubemail/SQL/mysql5.initial.sql | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'roundcubemail/SQL/mysql5.initial.sql')

diff --git a/roundcubemail/SQL/mysql5.initial.sql b/roundcubemail/SQL/mysql5.initial.sql
index e01f2a6b1..7d11288e3 100644
--- a/roundcubemail/SQL/mysql5.initial.sql
+++ b/roundcubemail/SQL/mysql5.initial.sql
@@ -14,7 +14,8 @@ CREATE TABLE `session` (
  `changed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `ip` varchar(40) NOT NULL,
  `vars` text NOT NULL,
- PRIMARY KEY(`sess_id`)
+ PRIMARY KEY(`sess_id`),
+ INDEX `changed_index` (`changed`)
 ) TYPE=INNODB CHARACTER SET utf8 COLLATE utf8_general_ci;
 
 
-- 
cgit v1.2.3

