diff options
author | Andrew Dolgov <[email protected]> | 2005-09-09 05:52:36 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-09-09 05:52:36 +0100 |
commit | eb36b4eb5526fca5ea05b635d828e290687b4ea3 (patch) | |
tree | 413bbd74158060d33d9a4f954a5594e073e892ad /schema/ttrss_schema_pgsql.sql | |
parent | e9e4c6e23a55bc6633293da4a25ea979e8080140 (diff) |
start work on support for technorati tags, schema uses cascade deletes for pgsql
Diffstat (limited to 'schema/ttrss_schema_pgsql.sql')
-rw-r--r-- | schema/ttrss_schema_pgsql.sql | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql index 31183173b..3c084996f 100644 --- a/schema/ttrss_schema_pgsql.sql +++ b/schema/ttrss_schema_pgsql.sql @@ -1,3 +1,4 @@ +drop table ttrss_tags; drop table ttrss_entries; drop table ttrss_feeds; @@ -28,7 +29,7 @@ insert into ttrss_feeds (title,feed_url) values ('Technocrat.net', 'http://syndication.technocrat.net/rss'); create table ttrss_entries (id serial not null primary key, - feed_id int references ttrss_feeds(id) not null, + feed_id int references ttrss_feeds(id) ON DELETE CASCADE not null, updated timestamp not null, title varchar(250) not null, guid varchar(300) not null unique, @@ -68,3 +69,7 @@ create table ttrss_labels (id serial primary key, insert into ttrss_labels (sql_exp,description) values ('unread = true', 'Unread articles'); +create table ttrss_tags (id serial primary key, + tag_name varchar(250) not null, + post_id integer references ttrss_entries(id) ON DELETE CASCADE not null); + |