ttrss/schema/upgrade-1.1-1.1.1-pgsql.sql

33 lines
1.2 KiB
MySQL
Raw Normal View History

begin;
alter table ttrss_entries add column num_comments integer;
update ttrss_entries set num_comments = 0;
alter table ttrss_entries alter column num_comments set not null;
alter table ttrss_entries alter column num_comments set default 0;
2005-12-13 05:58:22 +00:00
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('COMBINED_DISPLAY_MODE', 1, 'false', 'Combined feed display',2,
'Display expanded list of feed articles, instead of separate displays for headlines and article content');
alter table ttrss_feed_categories add column collapsed boolean;
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 default false;
2005-12-16 05:45:04 +00:00
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;