HRM: Add fk_establishment in llx_user to link an user to an establishment

This commit is contained in:
aspangaro 2015-11-11 15:45:55 +01:00
parent e673b18871
commit 05b0ab2eab
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -27,6 +27,7 @@ create table llx_user
ref_int varchar(50), -- reference into an internal system (deprecated)
employee tinyint DEFAULT 1, -- 1 if user is an employee
fk_establishment integer DEFAULT 0,
datec datetime,
tms timestamp,