diff options
author | Andrew Dolgov <[email protected]> | 2009-12-28 19:15:15 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-12-28 19:15:15 +0300 |
commit | 24902606eb47debce37ff1ee68b0a668d224d966 (patch) | |
tree | b8454ae83a090bee3bdbbc63ef3e545d4b9babd8 /schema/ttrss_schema_pgsql.sql | |
parent | dbfc43651935533c07244257225926b6a120518f (diff) |
add ttrss_archived_feeds (MODIFY SCHEMA v60)
Diffstat (limited to 'schema/ttrss_schema_pgsql.sql')
-rw-r--r-- | schema/ttrss_schema_pgsql.sql | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql index 7afebb5d9..f2b0e808d 100644 --- a/schema/ttrss_schema_pgsql.sql +++ b/schema/ttrss_schema_pgsql.sql @@ -18,6 +18,7 @@ drop table ttrss_entries; drop table ttrss_scheduled_updates; drop table ttrss_counters_cache; drop table ttrss_cat_counters_cache; +drop table ttrss_archived_feeds; drop table ttrss_feeds; drop table ttrss_feed_categories; drop table ttrss_users; @@ -89,6 +90,12 @@ insert into ttrss_feeds (owner_uid, title, feed_url) values insert into ttrss_feeds (owner_uid, title, feed_url) values (1, 'Tiny Tiny RSS: Forum', 'http://tt-rss.spb.ru/forum/rss.php'); +create table ttrss_archived_feeds (id integer not null primary key, + owner_uid integer not null references ttrss_users(id) on delete cascade, + title varchar(200) not null, + feed_url text not null, + site_url varchar(250) not null default ''); + create table ttrss_counters_cache ( feed_id integer not null, owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE, @@ -122,7 +129,7 @@ create table ttrss_user_entries ( int_id serial not null primary key, ref_id integer not null references ttrss_entries(id) ON DELETE CASCADE, feed_id int references ttrss_feeds(id) ON DELETE CASCADE, - orig_feed_id int references ttrss_feeds(id) ON DELETE SET NULL, + orig_feed_id integer references ttrss_archived_feeds(id) ON DELETE SET NULL, owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE, marked boolean not null default false, published boolean not null default false, |