HRM: Add fk_establishment in llx_user to link an user to an establishment
This commit is contained in:
parent
e673b18871
commit
05b0ab2eab
@ -111,7 +111,8 @@ ALTER TABLE llx_ecm_files ADD UNIQUE INDEX uk_ecm_files (label, entity);
|
|||||||
ALTER TABLE llx_product ADD COLUMN onportal smallint DEFAULT 0 AFTER tobuy;
|
ALTER TABLE llx_product ADD COLUMN onportal smallint DEFAULT 0 AFTER tobuy;
|
||||||
|
|
||||||
|
|
||||||
ALTER TABLE llx_user ADD COLUMN employee smallint DEFAULT 1;
|
ALTER TABLE llx_user ADD COLUMN employee smallint DEFAULT 1 AFTER ref_int;
|
||||||
|
ALTER TABLE llx_user ADD COLUMN fk_establishment integer DEFAULT 0 AFTER employee;
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS llx_c_hrm_function
|
CREATE TABLE IF NOT EXISTS llx_c_hrm_function
|
||||||
|
|||||||
@ -27,6 +27,7 @@ create table llx_user
|
|||||||
ref_int varchar(50), -- reference into an internal system (deprecated)
|
ref_int varchar(50), -- reference into an internal system (deprecated)
|
||||||
|
|
||||||
employee tinyint DEFAULT 1, -- 1 if user is an employee
|
employee tinyint DEFAULT 1, -- 1 if user is an employee
|
||||||
|
fk_establishment integer DEFAULT 0,
|
||||||
|
|
||||||
datec datetime,
|
datec datetime,
|
||||||
tms timestamp,
|
tms timestamp,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user