1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-04 03:59:14 +00:00

entry comments schema

This commit is contained in:
Andrew Dolgov
2005-11-20 19:06:06 +01:00
parent e55a298d5c
commit 8caa7999c0
2 changed files with 21 additions and 0 deletions

View File

@@ -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;