Fix: just one entity per user

Todo: add the import of users
This commit is contained in:
Regis Houssin 2009-04-19 11:56:47 +00:00
parent 634397b03b
commit ae94aa9238
3 changed files with 6 additions and 8 deletions

View File

@ -125,8 +125,8 @@ ALTER TABLE llx_categorie_association ADD UNIQUE INDEX uk_categorie_association_
-- Multi company
ALTER TABLE llx_const ADD COLUMN entity integer DEFAULT 1 NOT NULL AFTER tms;
ALTER TABLE llx_user ADD COLUMN entity varchar(20) DEFAULT 1 NOT NULL AFTER lang;
ALTER TABLE llx_usergroup ADD COLUMN entity varchar(20) DEFAULT 1 NOT NULL AFTER note;
ALTER TABLE llx_user ADD COLUMN entity integer DEFAULT 1 NOT NULL AFTER lang;
ALTER TABLE llx_usergroup ADD COLUMN entity integer DEFAULT 1 NOT NULL AFTER note;
ALTER TABLE llx_const DROP INDEX name;
ALTER TABLE llx_user DROP INDEX uk_user_login;

View File

@ -51,7 +51,7 @@ create table llx_user
ldap_sid varchar(255) DEFAULT NULL,
statut tinyint DEFAULT 1,
lang varchar(6),
entity varchar(20) DEFAULT 1 NOT NULL -- multi company id
entity integer DEFAULT 1 NOT NULL -- multi company id
)type=innodb;
--
@ -60,6 +60,5 @@ create table llx_user
-- 0 : common user
-- 1 : first company user
-- 2 : second company user
-- 1,3 : first and third company user
-- etc...
-- 3 : etc...
--

View File

@ -27,7 +27,7 @@ create table llx_usergroup
tms timestamp,
nom varchar(255) NOT NULL,
note text,
entity varchar(20) DEFAULT 1 NOT NULL -- multi company id
entity integer DEFAULT 1 NOT NULL -- multi company id
)type=innodb;
--
@ -36,6 +36,5 @@ create table llx_usergroup
-- 0 : common group
-- 1 : first company group
-- 2 : second company group
-- 1,3 : first and third company group
-- etc...
-- 3 : etc...
--