Add fields to know authentication method used

This commit is contained in:
Laurent Destailleur 2021-03-18 12:54:49 +01:00
parent d2ef4b0506
commit 8d19c57731
2 changed files with 5 additions and 1 deletions

View File

@ -52,6 +52,8 @@ ALTER TABLE llx_oauth_token ADD COLUMN restricted_ips varchar(200);
ALTER TABLE llx_oauth_token ADD COLUMN datec datetime DEFAULT NULL;
ALTER TABLE llx_oauth_token ADD COLUMN tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
ALTER TABLE llx_events ADD COLUMN authentication_method varchar(64) NULL;
ALTER TABLE llx_events ADD COLUMN fk_oauth_token integer NULL;
ALTER TABLE llx_mailing_cibles MODIFY COLUMN tag varchar(64) NULL;
ALTER TABLE llx_mailing_cibles ADD INDEX idx_mailing_cibles_tag (tag);

View File

@ -33,6 +33,8 @@ create table llx_events
description varchar(250) NOT NULL, -- full description of action
ip varchar(250) NOT NULL, -- ip (must contains ip v4 and v6 or dns names)
user_agent varchar(255) NULL, -- user agent
fk_object integer -- id of related object
fk_object integer NULL -- id of related object
authentication_method varchar(64) NULL, -- type of authentication mode used if internal login event
fk_oauth_token integer NULL -- id in oauth_token if internal login event done using an oauth_token
) ENGINE=innodb;