summaryrefslogtreecommitdiff
path: root/SQL/postgres.initial.sql
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-11-22 18:06:13 +0000
committeralecpl <alec@alec.pl>2008-11-22 18:06:13 +0000
commitdcf780a6bd5065ffb0dcc76233b1e5f601e258d2 (patch)
treef1e127b3cf04f18cf3776af057edd4fa57ec36e1 /SQL/postgres.initial.sql
parent3e48d2eee1d2af42aa777fd5e461fa570762732e (diff)
- 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
Diffstat (limited to 'SQL/postgres.initial.sql')
-rw-r--r--SQL/postgres.initial.sql2
1 files changed, 0 insertions, 2 deletions
diff --git a/SQL/postgres.initial.sql b/SQL/postgres.initial.sql
index 128b484d7..9fb8d32fb 100644
--- a/SQL/postgres.initial.sql
+++ b/SQL/postgres.initial.sql
@@ -129,14 +129,12 @@ CREATE SEQUENCE cache_ids
CREATE TABLE "cache" (
cache_id integer DEFAULT nextval('cache_ids'::text) PRIMARY KEY,
user_id integer NOT NULL REFERENCES users (user_id) ON DELETE CASCADE ON UPDATE CASCADE,
- session_id character varying(40) REFERENCES "session" (sess_id) ON DELETE CASCADE ON UPDATE CASCADE,
cache_key character varying(128) DEFAULT ''::character varying NOT NULL,
created timestamp with time zone DEFAULT now() NOT NULL,
data text NOT NULL
);
CREATE INDEX cache_user_id_idx ON "cache" (user_id, cache_key);
-CREATE INDEX cache_session_id_idx ON "cache" (session_id);
--
-- Sequence "message_ids"