last_login datetime default null,
access_level integer not null default 0,
theme_id integer default null,
+ email varchar(250) not null default '',
index (theme_id),
foreign key (theme_id) references ttrss_themes(id)) TYPE=InnoDB;
pwd_hash varchar(250) not null,
last_login timestamp default null,
access_level integer not null default 0,
+ email varchar(250) not null default '',
theme_id integer references ttrss_themes(id) default null);
insert into ttrss_users (login,pwd_hash,access_level) values ('admin', 'password', 10);
alter table ttrss_feeds change auth_pass auth_pass varchar(250) not null;
alter table ttrss_feeds alter column auth_pass set default '';
+alter table ttrss_users add column email varchar(250);
+
+update ttrss_users set email = '';
+
+alter table ttrss_users change email email varchar(250) not null;
+alter table ttrss_users alter column email set default '';
+
commit;
alter table ttrss_feeds alter column auth_pass set not null;
alter table ttrss_feeds alter column auth_pass set default '';
+alter table ttrss_users add column email varchar(250);
+
+update ttrss_users set email = '';
+
+alter table ttrss_users alter column email set not null;
+alter table ttrss_users alter column email set default '';
+
commit;