schema: add email column to ttrss_users

This commit is contained in:
Andrew Dolgov 2005-12-20 07:23:33 +01:00
parent d2afdfa09f
commit 8629e09d9b
4 changed files with 16 additions and 0 deletions

View File

@ -28,6 +28,7 @@ create table ttrss_users (id integer primary key not null auto_increment,
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;

View File

@ -27,6 +27,7 @@ create table ttrss_users (id serial not null primary key,
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);

View File

@ -29,4 +29,11 @@ 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 '';
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;

View File

@ -29,4 +29,11 @@ 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 '';
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;