summaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-19 06:48:02 +0100
committerAndrew Dolgov <[email protected]>2005-11-19 06:48:02 +0100
commit4c193675d010ceb5a7a690b55cb7c394f1525409 (patch)
treea11664515c4366f6520484052b6370190e6245e3 /schema
parent0bc694bfe4f60fddc0f2702654e3011177b848ce (diff)
initial split ttrss_entries work
Diffstat (limited to 'schema')
-rw-r--r--schema/ttrss_schema_pgsql.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql
index f9a4900d5..a11e2e337 100644
--- a/schema/ttrss_schema_pgsql.sql
+++ b/schema/ttrss_schema_pgsql.sql
@@ -37,7 +37,6 @@ insert into ttrss_feeds (owner_uid,title,feed_url) values (1,'Technocrat.net',
'http://syndication.technocrat.net/rss');
create table ttrss_entries (id serial not null primary key,
- feed_id int references ttrss_feeds(id) ON DELETE CASCADE not null,
title text not null,
guid text not null unique,
link text not null,
@@ -49,7 +48,8 @@ create table ttrss_entries (id serial not null primary key,
comments varchar(250) not null default '');
create table ttrss_user_entries (
- id integer unique not null references ttrss_entries(id) ON DELETE CASCADE,
+ ref_id integer not null references ttrss_entries(id) ON DELETE CASCADE,
+ feed_id int references ttrss_feeds(id) ON DELETE CASCADE not null,
owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE,
marked boolean not null default false,
last_read timestamp,