New: Add field to store hierarchy of users.

This commit is contained in:
Laurent Destailleur 2013-01-30 15:23:49 +01:00
parent ab82a293e9
commit 7ee530f826
2 changed files with 3 additions and 0 deletions

View File

@ -31,3 +31,5 @@ UPDATE llx_const set value='auguria_menu.php' where value='auguria_frontoffice.p
UPDATE llx_const set value='smartphone_menu.php' where value='smartphone_backoffice.php';
UPDATE llx_const set value='smartphone_menu.php' where value='smartphone_frontoffice.php';
ALTER TABLE llx_user add COLUMN fk_user integer;

View File

@ -50,6 +50,7 @@ create table llx_user
fk_societe integer,
fk_socpeople integer,
fk_member integer,
fk_user integer, -- Hierarchic parent
note text DEFAULT NULL,
datelastlogin datetime,
datepreviouslogin datetime,