add new filter action: modify score
This commit is contained in:
parent
afb6038e47
commit
fdb7b03fc0
4 changed files with 12 additions and 0 deletions
|
@ -164,6 +164,9 @@ insert into ttrss_filter_actions (id,name,description) values (4, 'tag',
|
||||||
insert into ttrss_filter_actions (id,name,description) values (5, 'publish',
|
insert into ttrss_filter_actions (id,name,description) values (5, 'publish',
|
||||||
'Publish article');
|
'Publish article');
|
||||||
|
|
||||||
|
insert into ttrss_filter_actions (id,name,description) values (6, 'score',
|
||||||
|
'Modify score');
|
||||||
|
|
||||||
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,
|
feed_id integer default null,
|
||||||
|
|
|
@ -154,6 +154,9 @@ insert into ttrss_filter_actions (id,name,description) values (4, 'tag',
|
||||||
insert into ttrss_filter_actions (id,name,description) values (5, 'publish',
|
insert into ttrss_filter_actions (id,name,description) values (5, 'publish',
|
||||||
'Publish article');
|
'Publish article');
|
||||||
|
|
||||||
|
insert into ttrss_filter_actions (id,name,description) values (6, 'score',
|
||||||
|
'Modify score');
|
||||||
|
|
||||||
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_feeds(id) on delete cascade default null,
|
feed_id integer references ttrss_feeds(id) on delete cascade default null,
|
||||||
|
|
|
@ -3,4 +3,7 @@ update ttrss_user_entries set score = 0;
|
||||||
alter table ttrss_user_entries change score score integer not null;
|
alter table ttrss_user_entries change score score integer not null;
|
||||||
alter table ttrss_user_entries alter column score set default 0;
|
alter table ttrss_user_entries alter column score set default 0;
|
||||||
|
|
||||||
|
insert into ttrss_filter_actions (id,name,description) values (6, 'score',
|
||||||
|
'Modify score');
|
||||||
|
|
||||||
update ttrss_version set schema_version = 36;
|
update ttrss_version set schema_version = 36;
|
||||||
|
|
|
@ -3,4 +3,7 @@ update ttrss_user_entries set score = 0;
|
||||||
alter table ttrss_user_entries alter column score set not null;
|
alter table ttrss_user_entries alter column score set not null;
|
||||||
alter table ttrss_user_entries alter column score set default 0;
|
alter table ttrss_user_entries alter column score set default 0;
|
||||||
|
|
||||||
|
insert into ttrss_filter_actions (id,name,description) values (6, 'score',
|
||||||
|
'Modify score');
|
||||||
|
|
||||||
update ttrss_version set schema_version = 36;
|
update ttrss_version set schema_version = 36;
|
||||||
|
|
Loading…
Reference in a new issue