From 7ee530f826cc25086067299d5253df65d82daa36 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 30 Jan 2013 15:23:49 +0100 Subject: [PATCH] New: Add field to store hierarchy of users. --- htdocs/install/mysql/migration/3.3.0-3.4.0.sql | 2 ++ htdocs/install/mysql/tables/llx_user.sql | 1 + 2 files changed, 3 insertions(+) diff --git a/htdocs/install/mysql/migration/3.3.0-3.4.0.sql b/htdocs/install/mysql/migration/3.3.0-3.4.0.sql index fd779495e3e..0a5a4a94642 100755 --- a/htdocs/install/mysql/migration/3.3.0-3.4.0.sql +++ b/htdocs/install/mysql/migration/3.3.0-3.4.0.sql @@ -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; + diff --git a/htdocs/install/mysql/tables/llx_user.sql b/htdocs/install/mysql/tables/llx_user.sql index bc4d75f0869..3974096085f 100644 --- a/htdocs/install/mysql/tables/llx_user.sql +++ b/htdocs/install/mysql/tables/llx_user.sql @@ -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,