From 2bbd16b94779c904c65751858d91cc93bc251e8e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 21 Nov 2005 14:11:16 +0100 Subject: per-feed filters in schema --- schema/ttrss_schema_mysql.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'schema/ttrss_schema_mysql.sql') diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql index e2b9c7050..885ac488f 100644 --- a/schema/ttrss_schema_mysql.sql +++ b/schema/ttrss_schema_mysql.sql @@ -82,13 +82,16 @@ insert into ttrss_filter_types (id,name,description) values (4, 'link', create table ttrss_filters (id integer not null primary key auto_increment, owner_uid integer not null, + feed_id integer default null, filter_type integer not null, reg_exp varchar(250) not null, description varchar(250) not null default '', index (filter_type), foreign key (filter_type) references ttrss_filter_types(id) ON DELETE CASCADE, index (owner_uid), - foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE) TYPE=InnoDB; + foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE, + index (feed_id), + foreign key (feed_id) references ttrss_feeds(id) ON DELETE CASCADE) TYPE=InnoDB; drop table if exists ttrss_labels; -- cgit v1.2.3-54-g00ecf