mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 05:25:56 +00:00
ttrss_filters: add tag action
This commit is contained in:
@@ -146,6 +146,9 @@ insert into ttrss_filter_actions (id,name,description) values (2, 'catchup',
|
||||
insert into ttrss_filter_actions (id,name,description) values (3, 'mark',
|
||||
'Set starred');
|
||||
|
||||
insert into ttrss_filter_actions (id,name,description) values (4, 'tag',
|
||||
'Assign tag');
|
||||
|
||||
create table ttrss_filters (id integer not null primary key auto_increment,
|
||||
owner_uid integer not null,
|
||||
feed_id integer default null,
|
||||
|
||||
@@ -140,6 +140,9 @@ insert into ttrss_filter_actions (id,name,description) values (2, 'catchup',
|
||||
insert into ttrss_filter_actions (id,name,description) values (3, 'mark',
|
||||
'Set starred');
|
||||
|
||||
insert into ttrss_filter_actions (id,name,description) values (4, 'tag',
|
||||
'Assign tag');
|
||||
|
||||
create table ttrss_filters (id serial not null primary key,
|
||||
owner_uid integer not null references ttrss_users(id) on delete cascade,
|
||||
feed_id integer references ttrss_feeds(id) on delete cascade default null,
|
||||
|
||||
@@ -5,5 +5,8 @@ update ttrss_filters set action_param = '';
|
||||
alter table ttrss_filters change action_param action_param varchar(200) not null;
|
||||
alter table ttrss_filters alter column action_param set default '';
|
||||
|
||||
insert into ttrss_filter_actions (id,name,description) values (4, 'tag',
|
||||
'Assign tag');
|
||||
|
||||
update ttrss_version set schema_version = 12;
|
||||
|
||||
|
||||
@@ -7,6 +7,9 @@ update ttrss_filters set action_param = '';
|
||||
alter table ttrss_filters alter column action_param set not null;
|
||||
alter table ttrss_filters alter column action_param set default '';
|
||||
|
||||
insert into ttrss_filter_actions (id,name,description) values (4, 'tag',
|
||||
'Assign tag');
|
||||
|
||||
update ttrss_version set schema_version = 12;
|
||||
|
||||
commit;
|
||||
|
||||
Reference in New Issue
Block a user