schema: new filter, publish

This commit is contained in:
Andrew Dolgov 2007-08-09 14:38:59 +01:00
parent c36bf4d57d
commit 0c4811be71
4 changed files with 12 additions and 0 deletions

View File

@ -148,6 +148,9 @@ insert into ttrss_filter_actions (id,name,description) values (3, 'mark',
insert into ttrss_filter_actions (id,name,description) values (4, 'tag', insert into ttrss_filter_actions (id,name,description) values (4, 'tag',
'Assign tags'); 'Assign tags');
insert into ttrss_filter_actions (id,name,description) values (5, 'publish',
'Publish article');
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,

View File

@ -142,6 +142,9 @@ insert into ttrss_filter_actions (id,name,description) values (3, 'mark',
insert into ttrss_filter_actions (id,name,description) values (4, 'tag', insert into ttrss_filter_actions (id,name,description) values (4, 'tag',
'Assign tags'); 'Assign tags');
insert into ttrss_filter_actions (id,name,description) values (5, 'publish',
'Publish article');
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,

View File

@ -5,4 +5,7 @@ update ttrss_user_entries set published = false;
alter table ttrss_user_entries change published published bool not null; alter table ttrss_user_entries change published published bool not null;
alter table ttrss_user_entries alter column published set default false; alter table ttrss_user_entries alter column published set default false;
insert into ttrss_filter_actions (id,name,description) values (5, 'publish',
'Publish article');
update ttrss_version set schema_version = 19; update ttrss_version set schema_version = 19;

View File

@ -5,4 +5,7 @@ update ttrss_user_entries set published = false;
alter table ttrss_user_entries alter column published set not null; alter table ttrss_user_entries alter column published set not null;
alter table ttrss_user_entries alter column published set default false; alter table ttrss_user_entries alter column published set default false;
insert into ttrss_filter_actions (id,name,description) values (5, 'publish',
'Publish article');
update ttrss_version set schema_version = 19; update ttrss_version set schema_version = 19;