schema: add collapsed field for ttrss_user_categories

This commit is contained in:
Andrew Dolgov 2005-12-13 09:30:52 +01:00
parent 06300301c0
commit 28bcadff2b
4 changed files with 16 additions and 0 deletions

View File

@ -34,6 +34,7 @@ insert into ttrss_users (login,pwd_hash,access_level) values ('admin', 'password
create table ttrss_feed_categories(id integer not null primary key auto_increment, create table ttrss_feed_categories(id integer not null primary key auto_increment,
owner_uid integer not null, owner_uid integer not null,
title varchar(200) not null, title varchar(200) not null,
collapsed bool not null default false,
index(owner_uid), index(owner_uid),
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE) TYPE=InnoDB; foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE) TYPE=InnoDB;

View File

@ -31,6 +31,7 @@ insert into ttrss_users (login,pwd_hash,access_level) values ('admin', 'password
create table ttrss_feed_categories(id serial not null primary key, create table ttrss_feed_categories(id serial not null primary key,
owner_uid integer not null references ttrss_users(id) on delete cascade, owner_uid integer not null references ttrss_users(id) on delete cascade,
collapsed boolean not null default false,
title varchar(200) not null); title varchar(200) not null);
create table ttrss_feeds (id serial not null primary key, create table ttrss_feeds (id serial not null primary key,

View File

@ -10,4 +10,11 @@ alter table ttrss_entries alter column num_comments set default 0;
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, 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'); 'Display expanded list of feed articles, instead of separate displays for headlines and article content');
alter table ttrss_feed_categories add column collapsed bool;
update ttrss_feed_categories set collapsed = false;
alter table ttrss_feed_categories change collapsed collapsed bool not null;
alter table ttrss_feed_categories alter column collapsed set default false;
commit; commit;

View File

@ -10,4 +10,11 @@ alter table ttrss_entries alter column num_comments set default 0;
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, 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'); '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;
commit; commit;