Skip to content

Commit

Permalink
Add field into user table to store API key
Browse files Browse the repository at this point in the history
  • Loading branch information
jfefe committed May 2, 2015
1 parent 23e4234 commit 4bce903
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions htdocs/install/mysql/migration/3.7.0-3.8.0.sql
Expand Up @@ -602,6 +602,10 @@ ALTER TABLE llx_user DROP INDEX idx_user_fk_societe;
ALTER TABLE llx_user CHANGE COLUMN fk_societe fk_soc INTEGER;
ALTER TABLE llx_user ADD INDEX idx_user_fk_societe (fk_soc);

-- API module
ALTER TABLE llx_user ADD api_key VARCHAR(128) DEFAULT NULL AFTER pass_temp;
ALTER TABLE llx_user ADD INDEX idx_user_api_key (api_key);




1 change: 1 addition & 0 deletions htdocs/install/mysql/tables/llx_user.key.sql
Expand Up @@ -25,3 +25,4 @@ ALTER TABLE llx_user ADD INDEX idx_user_fk_societe (fk_soc);

ALTER TABLE llx_user ADD UNIQUE INDEX uk_user_fk_socpeople (fk_socpeople);
ALTER TABLE llx_user ADD UNIQUE INDEX uk_user_fk_member (fk_member);
ALTER TABLE llx_user ADD UNIQUE INDEX uk_user_api_key (api_key);
1 change: 1 addition & 0 deletions htdocs/install/mysql/tables/llx_user.sql
Expand Up @@ -34,6 +34,7 @@ create table llx_user
pass varchar(32),
pass_crypted varchar(128),
pass_temp varchar(32), -- temporary password when asked for forget password
api_key varchar(128),
civility varchar(6),
lastname varchar(50),
firstname varchar(50),
Expand Down

0 comments on commit 4bce903

Please sign in to comment.