add hidden field to ttrss_feeds

This commit is contained in:
Andrew Dolgov 2006-08-13 12:43:48 +01:00
parent f2c43604ec
commit 7da377ca8b
4 changed files with 16 additions and 0 deletions

View File

@ -62,6 +62,7 @@ create table ttrss_feeds (id integer not null auto_increment primary key,
parent_feed integer default null, parent_feed integer default null,
private bool not null default false, private bool not null default false,
rtl_content bool not null default false, rtl_content bool not null default false,
hidden bool not null default false,
index(owner_uid), index(owner_uid),
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE, foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE,
index(cat_id), index(cat_id),

View File

@ -57,6 +57,7 @@ create table ttrss_feeds (id serial not null primary key,
parent_feed integer default null references ttrss_feeds(id) on delete set null, parent_feed integer default null references ttrss_feeds(id) on delete set null,
private boolean not null default false, private boolean not null default false,
auth_pass varchar(250) not null default '', auth_pass varchar(250) not null default '',
hidden boolean not null default false,
rtl_content boolean not null default false); rtl_content boolean not null default false);
create index ttrss_feeds_owner_uid_index on ttrss_feeds(owner_uid); create index ttrss_feeds_owner_uid_index on ttrss_feeds(owner_uid);

View File

@ -1,3 +1,10 @@
alter table ttrss_feeds add column hidden bool;
update ttrss_feeds set hidden = false;
alter table ttrss_feeds change hidden rtl_content bool not null;
alter table ttrss_feeds alter column hidden set default false;
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('MARK_UNREAD_ON_UPDATE', 1, 'false', 'Set articles as unread on update',3); insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('MARK_UNREAD_ON_UPDATE', 1, 'false', 'Set articles as unread on update',3);
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('REVERSE_HEADLINES', 1, 'false', 'Reverse headline order (oldest first)',2); insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('REVERSE_HEADLINES', 1, 'false', 'Reverse headline order (oldest first)',2);

View File

@ -1,5 +1,12 @@
begin; begin;
alter table ttrss_feeds add column hidden boolean;
update ttrss_feeds set hidden = false;
alter table ttrss_feeds alter column hidden set not null;
alter table ttrss_feeds alter column hidden set default false;
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('MARK_UNREAD_ON_UPDATE', 1, 'false', 'Set articles as unread on update',3); insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('MARK_UNREAD_ON_UPDATE', 1, 'false', 'Set articles as unread on update',3);
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('REVERSE_HEADLINES', 1, 'false', 'Reverse headline order (oldest first)',2); insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('REVERSE_HEADLINES', 1, 'false', 'Reverse headline order (oldest first)',2);