From dcf780a6bd5065ffb0dcc76233b1e5f601e258d2 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Sat, 22 Nov 2008 13:06:13 -0500
Subject: [PATCH] - fix r2076: removed cache.session_id column, removed DELETEs from cache in session_gc - trust DB server's time when "touching" cache and messages tables

---
 SQL/postgres.update.sql |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/SQL/postgres.update.sql b/SQL/postgres.update.sql
index f9cd431..6832b96 100644
--- a/SQL/postgres.update.sql
+++ b/SQL/postgres.update.sql
@@ -24,8 +24,6 @@
 
 -- 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;
+ALTER TABLE cache DROP session_id;
 
-CREATE INDEX cache_session_id_idx ON cache (session_id);
 CREATE INDEX session_changed_idx ON session (changed);

--
Gitblit v1.9.1