parent_feed integer default null,
private bool not null default false,
rtl_content bool not null default false,
+ hidden bool not null default false,
index(owner_uid),
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE,
index(cat_id),
parent_feed integer default null references ttrss_feeds(id) on delete set null,
private boolean not null default false,
auth_pass varchar(250) not null default '',
+ hidden boolean not null default false,
rtl_content boolean not null default false);
create index ttrss_feeds_owner_uid_index on ttrss_feeds(owner_uid);
+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('REVERSE_HEADLINES', 1, 'false', 'Reverse headline order (oldest first)',2);
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('REVERSE_HEADLINES', 1, 'false', 'Reverse headline order (oldest first)',2);