summaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-09-09 08:45:54 +0100
committerAndrew Dolgov <[email protected]>2005-09-09 08:45:54 +0100
commit8143ae1f2b61c6ad7255b090b47447d3680e22bf (patch)
tree9e5e815f62f8afe360daac6692a862fbcc036b07 /schema
parenteb36b4eb5526fca5ea05b635d828e290687b4ea3 (diff)
more work on tag support
Diffstat (limited to 'schema')
-rw-r--r--schema/ttrss_schema_mysql.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql
index 877421920..882933282 100644
--- a/schema/ttrss_schema_mysql.sql
+++ b/schema/ttrss_schema_mysql.sql
@@ -29,7 +29,7 @@ insert into ttrss_feeds (title,feed_url) values ('Technocrat.net',
'http://syndication.technocrat.net/rss');
create table ttrss_entries (id integer not null primary key auto_increment,
- feed_id integer not null references ttrss_feeds(id),
+ feed_id integer not null references ttrss_feeds(id) ON DELETE CASCADE,
updated datetime not null,
title varchar(250) not null,
guid varchar(250) not null unique,
@@ -72,5 +72,5 @@ insert into ttrss_labels (sql_exp,description) values ('unread = true',
create table ttrss_tags (id integer primary key auto_increment,
tag_name varchar(250) not null,
- post_id integer references ttrss_entries(id)) TYPE=InnoDB;
+ post_id integer references ttrss_entries(id) ON DELETE CASCADE) TYPE=InnoDB;