schema: add email column to ttrss_users
This commit is contained in:
parent
d2afdfa09f
commit
8629e09d9b
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue