New: Member module use generic extrafields feature.

This commit is contained in:
Laurent Destailleur
2011-06-19 12:04:24 +00:00
parent 52a6b11297
commit cb263d64f2
15 changed files with 55 additions and 28 deletions

View File

@@ -21,4 +21,4 @@
-- ===================================================================
ALTER TABLE llx_adherent_options ADD INDEX idx_adherent_options (fk_member);
ALTER TABLE llx_adherent_extrafields ADD INDEX idx_adherent_extrafields (fk_member);

View File

@@ -20,7 +20,7 @@
-- $Id$
-- ===================================================================
create table llx_adherent_options
create table llx_adherent_extrafields
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
tms timestamp,

View File

@@ -19,4 +19,4 @@
-- ===================================================================
ALTER TABLE llx_adherent_options_label ADD UNIQUE INDEX uk_adherent_options_label_name (name, entity);
ALTER TABLE llx_extrafields ADD UNIQUE INDEX uk_extrafields_name (name, entity, elementtype);

View File

@@ -20,11 +20,12 @@
-- $Id$
-- ===================================================================
create table llx_adherent_options_label
create table llx_extrafields
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
name varchar(64) NOT NULL, -- nom de l'attribut
entity integer DEFAULT 1 NOT NULL, -- multi company id
elementtype varchar(64) NOT NULL DEFAULT 'member',
tms timestamp,
label varchar(255) NOT NULL, -- label correspondant a l'attribut
type varchar(8),