Skip to content
Snippets Groups Projects
Commit b365f7df authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: uniformize fields name with standard extrafields

parent 048eab3e
No related branches found
No related tags found
No related merge requests found
-- --
-- $Id: 3.0.0-3.1.0.sql,v 1.85 2011/08/03 10:55:39 simnandez Exp $ -- $Id: 3.0.0-3.1.0.sql,v 1.86 2011/08/08 16:07:33 hregis Exp $
-- --
-- Be carefull to requests order. -- Be carefull to requests order.
-- This file must be loaded by calling /install/index.php page -- This file must be loaded by calling /install/index.php page
...@@ -483,3 +483,6 @@ ALTER TABLE llx_don ADD phone varchar(24) after email; ...@@ -483,3 +483,6 @@ ALTER TABLE llx_don ADD phone varchar(24) after email;
ALTER TABLE llx_user ADD civilite varchar(6) after entity; ALTER TABLE llx_user ADD civilite varchar(6) after entity;
ALTER TABLE llx_advanced_extrafields_options DROP COLUMN tms;
ALTER TABLE llx_advanced_extrafields_options CHANGE COLUMN rang pos integer;
ALTER TABLE llx_advanced_extrafields CHANGE COLUMN rang pos integer;
-- =================================================================== -- ===================================================================
-- Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr> -- Copyright (C) 2010-2011 Regis Houssin <regis@dolibarr.fr>
-- --
-- This program is free software; you can redistribute it and/or modify -- 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 -- it under the terms of the GNU General Public License as published by
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
-- You should have received a copy of the GNU General Public License -- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>. -- along with this program. If not, see <http://www.gnu.org/licenses/>.
-- --
-- $Id: llx_advanced_extrafields.sql,v 1.2 2011/08/03 01:25:29 eldy Exp $ -- $Id: llx_advanced_extrafields.sql,v 1.3 2011/08/08 16:07:33 hregis Exp $
-- =================================================================== -- ===================================================================
create table llx_advanced_extrafields create table llx_advanced_extrafields
...@@ -26,9 +26,11 @@ create table llx_advanced_extrafields ...@@ -26,9 +26,11 @@ create table llx_advanced_extrafields
elementtype varchar(64) NOT NULL, -- type of link 'invoice', 'order', 'proposal', 'invoice_supplier', 'order_supplier' elementtype varchar(64) NOT NULL, -- type of link 'invoice', 'order', 'proposal', 'invoice_supplier', 'order_supplier'
name varchar(64) NOT NULL, -- code name of field name varchar(64) NOT NULL, -- code name of field
label varchar(64) NOT NULL, label varchar(64) NOT NULL,
format varchar(8) NOT NULL, -- date, string, integer, float type varchar(8) NOT NULL, -- date, string, integer, float
fieldsize integer, fieldsize integer,
maxlength integer, maxlength integer,
options varchar(255), options varchar(255),
rang integer
pos integer
)ENGINE=innodb; )ENGINE=innodb;
-- =================================================================== -- ===================================================================
-- Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr> -- Copyright (C) 2010-2011 Regis Houssin <regis@dolibarr.fr>
-- --
-- This program is free software; you can redistribute it and/or modify -- 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 -- it under the terms of the GNU General Public License as published by
...@@ -14,17 +14,16 @@ ...@@ -14,17 +14,16 @@
-- You should have received a copy of the GNU General Public License -- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>. -- along with this program. If not, see <http://www.gnu.org/licenses/>.
-- --
-- $Id: llx_advanced_extrafields_options.sql,v 1.2 2011/08/03 01:25:26 eldy Exp $ -- $Id: llx_advanced_extrafields_options.sql,v 1.3 2011/08/08 16:07:33 hregis Exp $
-- =================================================================== -- ===================================================================
create table llx_advanced_extrafields_options create table llx_advanced_extrafields_options
( (
rowid integer AUTO_INCREMENT PRIMARY KEY, rowid integer AUTO_INCREMENT PRIMARY KEY,
tms timestamp,
fk_extrafields integer NOT NULL, fk_extrafields integer NOT NULL,
value varchar(255) NOT NULL, value varchar(255) NOT NULL,
rang integer pos integer
)ENGINE=innodb; )ENGINE=innodb;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment