access_level integer not null default 0,
theme_id integer default null,
email varchar(250) not null default '',
+ email_digest bool not null default false,
+ last_digest_sent datetime default null,
index (theme_id),
foreign key (theme_id) references ttrss_themes(id)) TYPE=InnoDB;
last_login timestamp default null,
access_level integer not null default 0,
email varchar(250) not null default '',
+ email_digest boolean not null default false,
+ last_digest_sent timestamp default null,
theme_id integer references ttrss_themes(id) default null);
insert into ttrss_users (login,pwd_hash,access_level) values ('admin',
alter table ttrss_feeds add column hidden bool;
-
update ttrss_feeds set hidden = false;
-
alter table ttrss_feeds change hidden hidden bool not null;
alter table ttrss_feeds alter column hidden set default false;
+alter table ttrss_users add column email_digest bool;
+update ttrss_users set email_digest = false;
+alter table ttrss_users change email_digest email_digest bool not null;
+alter table ttrss_users alter column email_digest set default false;
+
+alter table ttrss_users add column last_digest_sent datetime;
+update ttrss_users set last_digest_sent = false;
+alter table ttrss_users alter column last_digest_sent set default null;
+
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('MARK_UNREAD_ON_UPDATE', 1, 'false', 'Set articles as unread on update',3);
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('REVERSE_HEADLINES', 1, 'false', 'Reverse headline order (oldest first)',2);
begin;
alter table ttrss_feeds add column hidden boolean;
-
update ttrss_feeds set hidden = false;
-
alter table ttrss_feeds alter column hidden set not null;
alter table ttrss_feeds alter column hidden set default false;
+alter table ttrss_users add column email_digest boolean;
+update ttrss_users set email_digest = false;
+alter table ttrss_users alter column email_digest set not null;
+alter table ttrss_users alter column email_digest set default false;
+
+alter table ttrss_users add column last_digest_sent timestamp;
+update ttrss_users set last_digest_sent = NULL;
+alter table ttrss_users alter column last_digest_sent set default NULL;
+
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('MARK_UNREAD_ON_UPDATE', 1, 'false', 'Set articles as unread on update',3);
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('REVERSE_HEADLINES', 1, 'false', 'Reverse headline order (oldest first)',2);