summaryrefslogtreecommitdiff
path: root/schema/ttrss_schema_pgsql.sql
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-20 19:06:06 +0100
committerAndrew Dolgov <[email protected]>2005-11-20 19:06:06 +0100
commit8caa7999c021d0363e726fcf582cc64a58f4a1e7 (patch)
tree57465d9f4f3ba685cc07a2da118bb4f959cd2d03 /schema/ttrss_schema_pgsql.sql
parente55a298d5c7291edcf0b10b84dd0de7671773880 (diff)
entry comments schema
Diffstat (limited to 'schema/ttrss_schema_pgsql.sql')
-rw-r--r--schema/ttrss_schema_pgsql.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql
index 4a3173367..a9befdce8 100644
--- a/schema/ttrss_schema_pgsql.sql
+++ b/schema/ttrss_schema_pgsql.sql
@@ -1,6 +1,7 @@
drop table ttrss_tags;
drop table ttrss_user_entries;
+drop table ttrss_entry_comments;
drop table ttrss_entries;
drop table ttrss_feeds;
@@ -67,6 +68,15 @@ create index ttrss_user_entries_feed_id_index on ttrss_user_entries(feed_id);
create index ttrss_user_entries_owner_uid_index on ttrss_user_entries(owner_uid);
create index ttrss_user_entries_ref_id_index on ttrss_user_entries(ref_id);
+create table ttrss_entry_comments (id serial not null primary key,
+ ref_id integer not null references ttrss_entries(id) ON DELETE CASCADE,
+ owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE,
+ private boolean not null default false,
+ date_entered timestamp not null);
+
+create index ttrss_entry_comments_ref_id_index on ttrss_entry_comments(ref_id);
+create index ttrss_entry_comments_owner_uid_index on ttrss_entry_comments(owner_uid);
+
drop table ttrss_filters;
drop table ttrss_filter_types;