ttrss_feeds: add private column to hide from browser
This commit is contained in:
parent
48fa05ad37
commit
5b35b4de9b
|
@ -55,6 +55,7 @@ create table ttrss_feeds (id integer not null auto_increment primary key,
|
||||||
auth_login varchar(250) not null default '',
|
auth_login varchar(250) not null default '',
|
||||||
auth_pass varchar(250) not null default '',
|
auth_pass varchar(250) not null default '',
|
||||||
parent_feed integer default null,
|
parent_feed integer default null,
|
||||||
|
private 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),
|
||||||
|
|
|
@ -50,6 +50,7 @@ create table ttrss_feeds (id serial not null primary key,
|
||||||
site_url varchar(250) not null default '',
|
site_url varchar(250) not null default '',
|
||||||
auth_login varchar(250) not null default '',
|
auth_login varchar(250) not null default '',
|
||||||
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,
|
||||||
auth_pass varchar(250) not null default '');
|
auth_pass varchar(250) not null default '');
|
||||||
|
|
||||||
create index ttrss_feeds_owner_uid_index on ttrss_feeds(owner_uid);
|
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 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 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;
|
update ttrss_version set schema_version = 4;
|
||||||
|
|
||||||
commit;
|
commit;
|
||||||
|
|
|
@ -3,6 +3,13 @@ begin;
|
||||||
alter table ttrss_feeds add column parent_feed integer;
|
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 foreign key (parent_feed) references ttrss_feeds(id) on delete set null;
|
||||||
|
|
||||||
|
alter table ttrss_feeds add column private boolean;
|
||||||
|
|
||||||
|
update ttrss_feeds set private = false;
|
||||||
|
|
||||||
|
alter table ttrss_feeds alter column private set not null;
|
||||||
|
alter table ttrss_feeds alter column private set default false;
|
||||||
|
|
||||||
update ttrss_version set schema_version = 4;
|
update ttrss_version set schema_version = 4;
|
||||||
|
|
||||||
commit;
|
commit;
|
||||||
|
|
Loading…
Reference in New Issue