schema: add ttrss_users.last_auth_attempt
This commit is contained in:
parent
96d89fe912
commit
b9268fcc88
|
@ -6,7 +6,7 @@ class Config {
|
|||
const T_STRING = 2;
|
||||
const T_INT = 3;
|
||||
|
||||
const SCHEMA_VERSION = 144;
|
||||
const SCHEMA_VERSION = 145;
|
||||
|
||||
/* override defaults, defined below in _DEFAULTS[], prefixing with _ENVVAR_PREFIX:
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
alter table ttrss_users add column last_auth_attempt datetime;
|
||||
alter table ttrss_users alter column last_auth_attempt set default null;
|
|
@ -54,7 +54,8 @@ create table ttrss_users (id integer primary key not null auto_increment,
|
|||
twitter_oauth longtext default null,
|
||||
otp_enabled boolean not null default false,
|
||||
otp_secret varchar(250) default null,
|
||||
resetpass_token varchar(250) default null) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
|
||||
resetpass_token varchar(250) default null,
|
||||
last_auth_attempt datetime default null) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
|
||||
|
||||
insert into ttrss_users (login,pwd_hash,access_level) values ('admin',
|
||||
'SHA1:5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 10);
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
alter table ttrss_users add column last_auth_attempt timestamp;
|
||||
alter table ttrss_users alter column last_auth_attempt set default null;
|
|
@ -52,6 +52,7 @@ create table ttrss_users (id serial not null primary key,
|
|||
otp_enabled boolean not null default false,
|
||||
otp_secret varchar(250) default null,
|
||||
resetpass_token varchar(250) default null,
|
||||
last_auth_attempt timestamp default null,
|
||||
created timestamp default null);
|
||||
|
||||
insert into ttrss_users (login,pwd_hash,access_level) values ('admin',
|
||||
|
|
Loading…
Reference in New Issue