@ -55,6 +55,7 @@ create table ttrss_feeds (id integer not null auto_increment primary key,
auth_login varchar(250) not null default '',
auth_pass varchar(250) not null default '',
parent_feed integer default null,
private bool not null default false,
index(owner_uid),
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE,
index(cat_id),
@ -50,6 +50,7 @@ create table ttrss_feeds (id serial not null primary key,
site_url varchar(250) not null default '',
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 '');
create index ttrss_feeds_owner_uid_index on ttrss_feeds(owner_uid);
@ -3,6 +3,13 @@ begin;
alter table ttrss_feeds add column parent_feed integer;
alter table ttrss_feeds add foreign key (parent_feed) references ttrss_feeds(id) on delete set null;
alter table ttrss_feeds add column private bool;
update ttrss_feeds set private = false;
alter table ttrss_feeds change private private bool not null;
alter table ttrss_feeds alter column private set default 0;
update ttrss_version set schema_version = 4;
commit;
alter table ttrss_feeds add column private boolean;
alter table ttrss_feeds alter column private set not null;
alter table ttrss_feeds alter column private set default false;