From 36bfab86c2682c460b197029bbae4daa6ff83ec4 Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@madoka.spb.ru>
Date: Thu, 2 Mar 2006 09:10:43 +0100
Subject: database backed sessions

---
 schema/ttrss_schema_pgsql.sql | 9 +++++++++
 1 file changed, 9 insertions(+)

(limited to 'schema/ttrss_schema_pgsql.sql')

diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql
index 97434ce2a..ec98bbb22 100644
--- a/schema/ttrss_schema_pgsql.sql
+++ b/schema/ttrss_schema_pgsql.sql
@@ -16,6 +16,7 @@ drop table ttrss_feeds;
 drop table ttrss_feed_categories;
 drop table ttrss_users;
 drop table ttrss_themes;
+drop table ttrss_sessions;
 
 begin;
 
@@ -230,4 +231,12 @@ create table ttrss_scheduled_updates (id serial not null primary key,
 	feed_id integer default null references ttrss_feeds(id) ON DELETE CASCADE,
 	entered timestamp not null default NOW());
 
+create table ttrss_sessions (int_id serial not null primary key,
+		id varchar(300) unique not null,
+		data text,
+		expire integer not null);
+
+create index ttrss_sessions_id_index on ttrss_sessions(id);
+create index ttrss_sessions_expire_index on ttrss_sessions(expire);
+
 commit;
-- 
cgit v1.2.3

