add login/pass fields for feeds
This commit is contained in:
parent
65f8581478
commit
e93a3c96bb
4 changed files with 29 additions and 1 deletions
|
@ -49,6 +49,8 @@ create table ttrss_feeds (id integer not null auto_increment primary key,
|
||||||
last_updated datetime default '',
|
last_updated datetime default '',
|
||||||
last_error text not null default '',
|
last_error text not null default '',
|
||||||
site_url varchar(250) not null default '',
|
site_url varchar(250) not null default '',
|
||||||
|
auth_login varchar(250) not null default '',
|
||||||
|
auth_pass varchar(250) not null default '',
|
||||||
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),
|
||||||
|
|
|
@ -44,7 +44,9 @@ create table ttrss_feeds (id serial not null primary key,
|
||||||
purge_interval integer not null default 0,
|
purge_interval integer not null default 0,
|
||||||
last_updated timestamp default null,
|
last_updated timestamp default null,
|
||||||
last_error text not null default '',
|
last_error text not null default '',
|
||||||
site_url varchar(250) not null default '');
|
site_url varchar(250) not null default '',
|
||||||
|
auth_login 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);
|
||||||
|
|
||||||
|
|
|
@ -17,4 +17,16 @@ update ttrss_feed_categories set collapsed = false;
|
||||||
alter table ttrss_feed_categories change collapsed collapsed bool not null;
|
alter table ttrss_feed_categories change collapsed collapsed bool not null;
|
||||||
alter table ttrss_feed_categories alter column collapsed set default 0;
|
alter table ttrss_feed_categories alter column collapsed set default 0;
|
||||||
|
|
||||||
|
alter table ttrss_feeds add column auth_login varchar(250);
|
||||||
|
alter table ttrss_feeds add column auth_pass varchar(250);
|
||||||
|
|
||||||
|
update ttrss_feeds set auth_login = '';
|
||||||
|
update ttrss_feeds set auth_pass = '';
|
||||||
|
|
||||||
|
alter table ttrss_feeds change auth_login auth_login varchar(250) not null;
|
||||||
|
alter table ttrss_feeds alter column auth_login set default '';
|
||||||
|
|
||||||
|
alter table ttrss_feeds change auth_pass auth_pass varchar(250) not null;
|
||||||
|
alter table ttrss_feeds alter column auth_pass set default '';
|
||||||
|
|
||||||
commit;
|
commit;
|
||||||
|
|
|
@ -17,4 +17,16 @@ update ttrss_feed_categories set collapsed = false;
|
||||||
alter table ttrss_feed_categories alter column collapsed set not null;
|
alter table ttrss_feed_categories alter column collapsed set not null;
|
||||||
alter table ttrss_feed_categories alter column collapsed set default false;
|
alter table ttrss_feed_categories alter column collapsed set default false;
|
||||||
|
|
||||||
|
alter table ttrss_feeds add column auth_login varchar(250);
|
||||||
|
alter table ttrss_feeds add column auth_pass varchar(250);
|
||||||
|
|
||||||
|
update ttrss_feeds set auth_login = '';
|
||||||
|
update ttrss_feeds set auth_pass = '';
|
||||||
|
|
||||||
|
alter table ttrss_feeds alter column auth_login set not null;
|
||||||
|
alter table ttrss_feeds alter column auth_login set default '';
|
||||||
|
|
||||||
|
alter table ttrss_feeds alter column auth_pass set not null;
|
||||||
|
alter table ttrss_feeds alter column auth_pass set default '';
|
||||||
|
|
||||||
commit;
|
commit;
|
||||||
|
|
Loading…
Reference in a new issue