From 4c193675d010ceb5a7a690b55cb7c394f1525409 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 19 Nov 2005 06:48:02 +0100 Subject: initial split ttrss_entries work --- schema/ttrss_schema_pgsql.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'schema') 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, -- cgit v1.2.3