2012-08-30 14:50:56 +00:00
|
|
|
begin;
|
|
|
|
|
|
|
|
create table ttrss_filters2(id serial not null primary key,
|
|
|
|
owner_uid integer not null references ttrss_users(id) on delete cascade,
|
|
|
|
match_any_rule boolean not null default false,
|
|
|
|
enabled boolean not null default true);
|
2012-08-31 08:15:59 +00:00
|
|
|
|
2012-08-30 14:50:56 +00:00
|
|
|
create table ttrss_filters2_rules(id serial not null primary key,
|
|
|
|
filter_id integer not null references ttrss_filters2(id) on delete cascade,
|
|
|
|
reg_exp varchar(250) not null,
|
|
|
|
filter_type integer not null references ttrss_filter_types(id),
|
|
|
|
feed_id integer references ttrss_feeds(id) on delete cascade default null,
|
|
|
|
cat_id integer references ttrss_feed_categories(id) on delete cascade default null,
|
|
|
|
cat_filter boolean not null default false);
|
|
|
|
|
|
|
|
create table ttrss_filters2_actions(id serial not null primary key,
|
|
|
|
filter_id integer not null references ttrss_filters2(id) on delete cascade,
|
|
|
|
action_id integer not null default 1 references ttrss_filter_actions(id) on delete cascade,
|
|
|
|
action_param varchar(250) not null default '');
|
|
|
|
|
2012-08-31 08:15:59 +00:00
|
|
|
update ttrss_version set schema_version = 96;
|
2012-08-30 14:50:56 +00:00
|
|
|
|
|
|
|
commit;
|