From 8caa7999c021d0363e726fcf582cc64a58f4a1e7 Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@bah.spb.su>
Date: Sun, 20 Nov 2005 19:06:06 +0100
Subject: entry comments schema

---
 schema/ttrss_schema_mysql.sql | 11 +++++++++++
 1 file changed, 11 insertions(+)

(limited to 'schema/ttrss_schema_mysql.sql')

diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql
index 885ac488f..bb311bcc0 100644
--- a/schema/ttrss_schema_mysql.sql
+++ b/schema/ttrss_schema_mysql.sql
@@ -1,6 +1,7 @@
 drop table if exists ttrss_tags;
 
 drop table if exists ttrss_user_entries;
+drop table if exists ttrss_entry_comments;
 drop table if exists ttrss_entries;
 
 drop table if exists ttrss_feeds;
@@ -66,6 +67,16 @@ create table ttrss_user_entries (
 	index (owner_uid),
 	foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE) TYPE=InnoDB;
 
+create table ttrss_entry_comments (id integer not null primary key,
+	ref_id integer not null,
+	owner_uid integer not null,
+	private bool not null default 0,
+	date_entered datetime not null,
+	index (ref_id),
+	foreign key (ref_id) references ttrss_entries(id) ON DELETE CASCADE,
+	index (owner_uid),
+	foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE) TYPE=InnoDB;
+
 drop table if exists ttrss_filters;
 drop table if exists ttrss_filter_types;
 
-- 
cgit v1.2.3

