per-feed filters in schema
This commit is contained in:
parent
3a933f22b1
commit
2bbd16b947
|
@ -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,
|
create table ttrss_filters (id integer not null primary key auto_increment,
|
||||||
owner_uid integer not null,
|
owner_uid integer not null,
|
||||||
|
feed_id integer default null,
|
||||||
filter_type integer not null,
|
filter_type integer not null,
|
||||||
reg_exp varchar(250) not null,
|
reg_exp varchar(250) not null,
|
||||||
description varchar(250) not null default '',
|
description varchar(250) not null default '',
|
||||||
index (filter_type),
|
index (filter_type),
|
||||||
foreign key (filter_type) references ttrss_filter_types(id) ON DELETE CASCADE,
|
foreign key (filter_type) references ttrss_filter_types(id) ON DELETE CASCADE,
|
||||||
index (owner_uid),
|
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;
|
drop table if exists ttrss_labels;
|
||||||
|
|
||||||
|
|
|
@ -81,8 +81,9 @@ insert into ttrss_filter_types (id,name,description) values (3, 'both',
|
||||||
insert into ttrss_filter_types (id,name,description) values (4, 'link',
|
insert into ttrss_filter_types (id,name,description) values (4, 'link',
|
||||||
'Link');
|
'Link');
|
||||||
|
|
||||||
create table ttrss_filters (id serial not null primary key,
|
create table ttrss_filters (id serial not null primary key,
|
||||||
owner_uid integer not null references ttrss_users(id) on delete cascade,
|
owner_uid integer not null references ttrss_users(id) on delete cascade,
|
||||||
|
feed_id integer references ttrss_filters(id) on delete cascade default null,
|
||||||
filter_type integer not null references ttrss_filter_types(id),
|
filter_type integer not null references ttrss_filter_types(id),
|
||||||
reg_exp varchar(250) not null,
|
reg_exp varchar(250) not null,
|
||||||
description varchar(250) not null default '');
|
description varchar(250) not null default '');
|
||||||
|
|
Loading…
Reference in New Issue