Fix: just one entity per user
Todo: add the import of users
This commit is contained in:
parent
634397b03b
commit
ae94aa9238
@ -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;
|
||||
|
||||
@ -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...
|
||||
--
|
||||
@ -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...
|
||||
--
|
||||
Loading…
Reference in New Issue
Block a user