Browse Source

schema: add ttrss_users.last_auth_attempt

pull/18/head
Andrew Dolgov 2 months ago
parent
commit
b9268fcc88
  1. 2
      classes/config.php
  2. 2
      sql/mysql/migrations/145.sql
  3. 3
      sql/mysql/schema.sql
  4. 2
      sql/pgsql/migrations/145.sql
  5. 1
      sql/pgsql/schema.sql

2
classes/config.php

@ -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:

2
sql/mysql/migrations/145.sql

@ -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;

3
sql/mysql/schema.sql

@ -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);

2
sql/pgsql/migrations/145.sql

@ -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;

1
sql/pgsql/schema.sql

@ -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…
Cancel
Save