last_updated datetime default '',
last_error text 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),
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE,
index(cat_id),
purge_interval integer not null default 0,
last_updated timestamp default null,
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);
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_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;
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_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;