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/postgres.update.sql | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'roundcubemail/SQL/postgres.update.sql')

diff --git a/roundcubemail/SQL/postgres.update.sql b/roundcubemail/SQL/postgres.update.sql
index fdd7f0f5e..f9cd431b6 100644
--- a/roundcubemail/SQL/postgres.update.sql
+++ b/roundcubemail/SQL/postgres.update.sql
@@ -25,5 +25,7 @@ CREATE INDEX messages_created_idx ON messages (created);
 -- Updates from version 0.2-beta
 
 ALTER TABLE cache DROP CONSTRAINT cache_session_id_fkey;
-ALTER TABLE cache ADD FOREIGN KEY (session_id) REFERENCES session(sess_id) ON DELETE CASCADE ON UPDATE CASCADE;
-CREATE INDEX cache_session_id_idx ON "cache" (session_id);
+ALTER TABLE cache ADD FOREIGN KEY (session_id) REFERENCES session (sess_id) ON DELETE CASCADE ON UPDATE CASCADE;
+
+CREATE INDEX cache_session_id_idx ON cache (session_id);
+CREATE INDEX session_changed_idx ON session (changed);
-- 
cgit v1.2.3

