2003-02-20 18:40:42 +01:00
|
|
|
-- ===================================================================
|
2012-12-30 15:13:49 +01:00
|
|
|
-- Copyright (C) 2011-2012 Regis Houssin <regis.houssin@capnetworks.com>
|
2012-10-25 13:11:55 +02:00
|
|
|
-- Copyright (C) 2011-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
2003-02-20 18:40:42 +01:00
|
|
|
--
|
|
|
|
|
-- This program is free software; you can redistribute it and/or modify
|
|
|
|
|
-- it under the terms of the GNU General Public License as published by
|
2013-01-16 15:36:08 +01:00
|
|
|
-- the Free Software Foundation; either version 3 of the License, or
|
2003-02-20 18:40:42 +01:00
|
|
|
-- (at your option) any later version.
|
|
|
|
|
--
|
|
|
|
|
-- This program is distributed in the hope that it will be useful,
|
|
|
|
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
-- GNU General Public License for more details.
|
|
|
|
|
--
|
|
|
|
|
-- You should have received a copy of the GNU General Public License
|
2011-08-03 03:13:30 +02:00
|
|
|
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2003-02-20 18:40:42 +01:00
|
|
|
--
|
|
|
|
|
-- ===================================================================
|
|
|
|
|
|
2011-06-19 14:04:24 +02:00
|
|
|
create table llx_extrafields
|
2003-02-20 18:40:42 +01:00
|
|
|
(
|
2009-11-07 09:34:45 +01:00
|
|
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
|
|
|
|
name varchar(64) NOT NULL, -- nom de l'attribut
|
|
|
|
|
entity integer DEFAULT 1 NOT NULL, -- multi company id
|
2013-03-28 22:13:04 +01:00
|
|
|
elementtype varchar(64) NOT NULL DEFAULT 'member',
|
2008-12-18 02:08:03 +01:00
|
|
|
tms timestamp,
|
2009-11-07 09:34:45 +01:00
|
|
|
label varchar(255) NOT NULL, -- label correspondant a l'attribut
|
2008-12-18 21:32:27 +01:00
|
|
|
type varchar(8),
|
2012-09-13 10:14:25 +02:00
|
|
|
size varchar(8) DEFAULT NULL,
|
2012-09-22 20:27:06 +02:00
|
|
|
fieldunique integer DEFAULT 0,
|
2012-10-25 13:11:55 +02:00
|
|
|
fieldrequired integer DEFAULT 0,
|
2013-03-28 22:13:04 +01:00
|
|
|
pos integer DEFAULT 0,
|
|
|
|
|
param text
|
2011-02-24 10:57:02 +01:00
|
|
|
)ENGINE=innodb;
|