diff --git a/htdocs/install/mysql/migration/15.0.0-16.0.0.sql b/htdocs/install/mysql/migration/15.0.0-16.0.0.sql new file mode 100644 index 00000000000..9158aad8ae8 --- /dev/null +++ b/htdocs/install/mysql/migration/15.0.0-16.0.0.sql @@ -0,0 +1,67 @@ +-- +-- Be carefull to requests order. +-- This file must be loaded by calling /install/index.php page +-- when current version is 14.0.0 or higher. +-- +-- To restrict request to Mysql version x.y minimum use -- VMYSQLx.y +-- To restrict request to Pgsql version x.y minimum use -- VPGSQLx.y +-- To rename a table: ALTER TABLE llx_table RENAME TO llx_table_new; +-- To add a column: ALTER TABLE llx_table ADD COLUMN newcol varchar(60) NOT NULL DEFAULT '0' AFTER existingcol; +-- To rename a column: ALTER TABLE llx_table CHANGE COLUMN oldname newname varchar(60); +-- To drop a column: ALTER TABLE llx_table DROP COLUMN oldname; +-- To change type of field: ALTER TABLE llx_table MODIFY COLUMN name varchar(60); +-- To drop a foreign key: ALTER TABLE llx_table DROP FOREIGN KEY fk_name; +-- To create a unique index ALTER TABLE llx_table ADD UNIQUE INDEX uk_table_field (field); +-- To drop an index: -- VMYSQL4.1 DROP INDEX nomindex on llx_table; +-- To drop an index: -- VPGSQL8.2 DROP INDEX nomindex; +-- To make pk to be auto increment (mysql): -- VMYSQL4.3 ALTER TABLE llx_table CHANGE COLUMN rowid rowid INTEGER NOT NULL AUTO_INCREMENT; +-- To make pk to be auto increment (postgres): +-- -- VPGSQL8.2 CREATE SEQUENCE llx_table_rowid_seq OWNED BY llx_table.rowid; +-- -- VPGSQL8.2 ALTER TABLE llx_table ADD PRIMARY KEY (rowid); +-- -- VPGSQL8.2 ALTER TABLE llx_table ALTER COLUMN rowid SET DEFAULT nextval('llx_table_rowid_seq'); +-- -- VPGSQL8.2 SELECT setval('llx_table_rowid_seq', MAX(rowid)) FROM llx_table; +-- To set a field as NULL: -- VMYSQL4.3 ALTER TABLE llx_table MODIFY COLUMN name varchar(60) NULL; +-- To set a field as NULL: -- VPGSQL8.2 ALTER TABLE llx_table ALTER COLUMN name DROP NOT NULL; +-- To set a field as NOT NULL: -- VMYSQL4.3 ALTER TABLE llx_table MODIFY COLUMN name varchar(60) NOT NULL; +-- To set a field as NOT NULL: -- VPGSQL8.2 ALTER TABLE llx_table ALTER COLUMN name SET NOT NULL; +-- To set a field as default NULL: -- VPGSQL8.2 ALTER TABLE llx_table ALTER COLUMN name SET DEFAULT NULL; +-- Note: fields with type BLOB/TEXT can't have default value. +-- To rebuild sequence for postgresql after insert by forcing id autoincrement fields: +-- -- VPGSQL8.2 SELECT dol_util_rebuild_sequences(); + +-- Missing in v15 or lower + +ALTER TABLE llx_c_availability MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_civility MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_country MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_currencies MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_effectif MODIFY COLUMN libelle varchar(128); +ALTER TABLE llx_c_exp_tax_cat MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_hrm_department MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_hrm_function MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_input_reason MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_lead_status MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_paper_format MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_partnership_type MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_product_nature MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_productbatch_qcstatus MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_propalst MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_prospectcontactlevel MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_prospectlevel MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_recruitment_origin MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_shipment_package_type MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_type_container MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_type_fees MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_type_resource MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_units MODIFY COLUMN label varchar(128); +ALTER TABLE llx_c_actioncomm MODIFY COLUMN libelle varchar(128); +ALTER TABLE llx_c_barcode_type MODIFY COLUMN libelle varchar(128); +ALTER TABLE llx_c_chargesociales MODIFY COLUMN libelle varchar(128); +ALTER TABLE llx_c_input_method MODIFY COLUMN libelle varchar(128); +ALTER TABLE llx_c_paiement MODIFY COLUMN libelle varchar(128); +ALTER TABLE llx_c_shipment_mode MODIFY COLUMN libelle varchar(128); +ALTER TABLE llx_c_stcomm MODIFY COLUMN libelle varchar(128); +ALTER TABLE llx_c_stcommcontact MODIFY COLUMN libelle varchar(128); +ALTER TABLE llx_c_type_contact MODIFY COLUMN libelle varchar(128); +ALTER TABLE llx_c_typent MODIFY COLUMN libelle varchar(128); + diff --git a/htdocs/install/mysql/tables/llx_c_actioncomm.sql b/htdocs/install/mysql/tables/llx_c_actioncomm.sql index a2b2dffe8a7..4ccbf4a1340 100644 --- a/htdocs/install/mysql/tables/llx_c_actioncomm.sql +++ b/htdocs/install/mysql/tables/llx_c_actioncomm.sql @@ -2,6 +2,7 @@ -- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville -- Copyright (C) 2004-2016 Laurent Destailleur -- Copyright (C) 2012 Florian Henry +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -23,7 +24,7 @@ create table llx_c_actioncomm id integer PRIMARY KEY, code varchar(50) NOT NULL, type varchar(50) DEFAULT 'system' NOT NULL, - libelle varchar(48) NOT NULL, + libelle varchar(128) NOT NULL, module varchar(50) DEFAULT NULL, active tinyint DEFAULT 1 NOT NULL, todo tinyint, -- deprecated diff --git a/htdocs/install/mysql/tables/llx_c_availability.sql b/htdocs/install/mysql/tables/llx_c_availability.sql index 4cdc8d6203c..b36d89870b4 100644 --- a/htdocs/install/mysql/tables/llx_c_availability.sql +++ b/htdocs/install/mysql/tables/llx_c_availability.sql @@ -1,6 +1,7 @@ -- ======================================================================== -- Copyright (C) 2011 Philippe GRAND -- Copyright (C) 2020 Alexandre SPANGARO +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -21,7 +22,7 @@ create table llx_c_availability ( rowid integer AUTO_INCREMENT PRIMARY KEY, code varchar(30) NOT NULL, - label varchar(60) NOT NULL, + label varchar(128) NOT NULL, active tinyint DEFAULT 1 NOT NULL, position integer NOT NULL DEFAULT 0 )ENGINE=innodb; diff --git a/htdocs/install/mysql/tables/llx_c_barcode_type.sql b/htdocs/install/mysql/tables/llx_c_barcode_type.sql index fc76fab2dc9..3aaea7a5f59 100644 --- a/htdocs/install/mysql/tables/llx_c_barcode_type.sql +++ b/htdocs/install/mysql/tables/llx_c_barcode_type.sql @@ -1,6 +1,7 @@ -- ======================================================================== -- Copyright (C) 2007-2009 Regis Houssin -- Copyright (C) 2008 Laurent Destailleur +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -22,7 +23,7 @@ create table llx_c_barcode_type rowid integer AUTO_INCREMENT PRIMARY KEY, code varchar(16) NOT NULL, entity integer DEFAULT 1 NOT NULL, -- multi company id - libelle varchar(50) NOT NULL, + libelle varchar(128) NOT NULL, coder varchar(16) NOT NULL, example varchar(16) NOT NULL diff --git a/htdocs/install/mysql/tables/llx_c_chargesociales.sql b/htdocs/install/mysql/tables/llx_c_chargesociales.sql index 9da2976348f..78b87f95152 100644 --- a/htdocs/install/mysql/tables/llx_c_chargesociales.sql +++ b/htdocs/install/mysql/tables/llx_c_chargesociales.sql @@ -1,6 +1,7 @@ -- ======================================================================== -- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville -- Copyright (C) 2004-2009 Laurent Destailleur +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -20,7 +21,7 @@ create table llx_c_chargesociales ( id integer AUTO_INCREMENT PRIMARY KEY, - libelle varchar(80), + libelle varchar(128), deductible smallint DEFAULT 0 NOT NULL, active tinyint DEFAULT 1 NOT NULL, code varchar(12) NOT NULL, diff --git a/htdocs/install/mysql/tables/llx_c_civility.sql b/htdocs/install/mysql/tables/llx_c_civility.sql index 63fc8fca81f..9586101b254 100644 --- a/htdocs/install/mysql/tables/llx_c_civility.sql +++ b/htdocs/install/mysql/tables/llx_c_civility.sql @@ -1,6 +1,7 @@ -- ======================================================================== -- Copyright (C) 2004 Benoit Mortier -- Copyright (C) 2004 Laurent Destailleur +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -21,7 +22,7 @@ create table llx_c_civility ( rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL, code varchar(6) NOT NULL, - label varchar(50), + label varchar(128), active tinyint DEFAULT 1 NOT NULL, module varchar(32) NULL )ENGINE=innodb; diff --git a/htdocs/install/mysql/tables/llx_c_country.sql b/htdocs/install/mysql/tables/llx_c_country.sql index 7f7ba0d4113..d97c3b90371 100644 --- a/htdocs/install/mysql/tables/llx_c_country.sql +++ b/htdocs/install/mysql/tables/llx_c_country.sql @@ -2,6 +2,7 @@ -- Copyright (C) 2001-2004 Rodolphe Quiedeville -- Copyright (C) 2004 Laurent Destailleur -- Copyright (C) 2014 Alexandre Spangaro +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -23,7 +24,7 @@ create table llx_c_country rowid integer PRIMARY KEY, code varchar(2) NOT NULL, code_iso varchar(3) , - label varchar(50) NOT NULL, + label varchar(128) NOT NULL, eec integer , active tinyint DEFAULT 1 NOT NULL, favorite tinyint DEFAULT 0 NOT NULL diff --git a/htdocs/install/mysql/tables/llx_c_currencies.sql b/htdocs/install/mysql/tables/llx_c_currencies.sql index 1943fa6eb41..d2d66236016 100644 --- a/htdocs/install/mysql/tables/llx_c_currencies.sql +++ b/htdocs/install/mysql/tables/llx_c_currencies.sql @@ -1,6 +1,7 @@ -- ======================================================================== -- Copyright (C) 2005 Laurent Destailleur -- Copyright (C) 2012 Regis Houssin +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -20,7 +21,7 @@ create table llx_c_currencies ( code_iso varchar(3) PRIMARY KEY, - label varchar(64) NOT NULL, + label varchar(128) NOT NULL, unicode varchar(32) DEFAULT NULL, active tinyint DEFAULT 1 NOT NULL diff --git a/htdocs/install/mysql/tables/llx_c_effectif.sql b/htdocs/install/mysql/tables/llx_c_effectif.sql index 26cab5c43da..dda78304fd9 100644 --- a/htdocs/install/mysql/tables/llx_c_effectif.sql +++ b/htdocs/install/mysql/tables/llx_c_effectif.sql @@ -1,6 +1,7 @@ -- ======================================================================== -- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville -- Copyright (C) 2004 Laurent Destailleur +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -21,7 +22,7 @@ create table llx_c_effectif ( id integer PRIMARY KEY, code varchar(12) NOT NULL, - libelle varchar(30), + libelle varchar(128), active tinyint DEFAULT 1 NOT NULL, module varchar(32) NULL )ENGINE=innodb; diff --git a/htdocs/install/mysql/tables/llx_c_exp_tax_cat.sql b/htdocs/install/mysql/tables/llx_c_exp_tax_cat.sql index 90c60d87b97..6b106caa355 100644 --- a/htdocs/install/mysql/tables/llx_c_exp_tax_cat.sql +++ b/htdocs/install/mysql/tables/llx_c_exp_tax_cat.sql @@ -2,6 +2,7 @@ -- Copyright (C) 2012 Mikael Carlavan -- Copyright (C) 2017 ATM Consulting -- Copyright (C) 2017 Pierre-Henry Favre +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -20,7 +21,7 @@ CREATE TABLE IF NOT EXISTS llx_c_exp_tax_cat ( rowid integer AUTO_INCREMENT PRIMARY KEY, - label varchar(48) NOT NULL, + label varchar(128) NOT NULL, entity integer DEFAULT 1 NOT NULL, active integer DEFAULT 1 NOT NULL )ENGINE=innodb; diff --git a/htdocs/install/mysql/tables/llx_c_hrm_department.sql b/htdocs/install/mysql/tables/llx_c_hrm_department.sql index 13380bf03b9..fbe6c67671c 100644 --- a/htdocs/install/mysql/tables/llx_c_hrm_department.sql +++ b/htdocs/install/mysql/tables/llx_c_hrm_department.sql @@ -1,6 +1,7 @@ -- -- Copyright (C) 2013 Jean-François Ferry -- Copyright (C) 2015 Alexandre Spangaro +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -20,7 +21,7 @@ create table llx_c_hrm_department rowid integer PRIMARY KEY, pos tinyint DEFAULT 0 NOT NULL, code varchar(16) NOT NULL, - label varchar(50), + label varchar(128), active tinyint DEFAULT 1 NOT NULL )ENGINE=innodb; diff --git a/htdocs/install/mysql/tables/llx_c_hrm_function.sql b/htdocs/install/mysql/tables/llx_c_hrm_function.sql index 3d6fc37fc2b..558893ba8d6 100644 --- a/htdocs/install/mysql/tables/llx_c_hrm_function.sql +++ b/htdocs/install/mysql/tables/llx_c_hrm_function.sql @@ -1,6 +1,7 @@ -- -- Copyright (C) 2013 Jean-François Ferry -- Copyright (C) 2015 Alexandre Spangaro +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -20,7 +21,7 @@ create table llx_c_hrm_function rowid integer PRIMARY KEY, pos tinyint DEFAULT 0 NOT NULL, code varchar(16) NOT NULL, - label varchar(50), + label varchar(128), c_level tinyint DEFAULT 0 NOT NULL, active tinyint DEFAULT 1 NOT NULL )ENGINE=innodb; diff --git a/htdocs/install/mysql/tables/llx_c_input_method.sql b/htdocs/install/mysql/tables/llx_c_input_method.sql index 40ed48f8fc6..fc77566e6bd 100644 --- a/htdocs/install/mysql/tables/llx_c_input_method.sql +++ b/htdocs/install/mysql/tables/llx_c_input_method.sql @@ -1,6 +1,7 @@ -- ======================================================================== -- Copyright (C) 2004-2005 Rodolphe Quiedeville -- Copyright (C) 2005-2009 Laurent Destailleur +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -21,7 +22,7 @@ create table llx_c_input_method ( rowid integer AUTO_INCREMENT PRIMARY KEY, code varchar(30), - libelle varchar(60), + libelle varchar(128), active tinyint default 1 NOT NULL, module varchar(32) NULL )ENGINE=innodb; diff --git a/htdocs/install/mysql/tables/llx_c_input_reason.sql b/htdocs/install/mysql/tables/llx_c_input_reason.sql index dba58dbbecc..f57a9a877ab 100644 --- a/htdocs/install/mysql/tables/llx_c_input_reason.sql +++ b/htdocs/install/mysql/tables/llx_c_input_reason.sql @@ -1,6 +1,7 @@ -- ======================================================================== -- Copyright (C) 2004-2005 Rodolphe Quiedeville -- Copyright (C) 2005-2009 Laurent Destailleur +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -23,7 +24,7 @@ create table llx_c_input_reason ( rowid integer AUTO_INCREMENT PRIMARY KEY, code varchar(30), - label varchar(60), + label varchar(128), active tinyint default 1 NOT NULL, module varchar(32) NULL )ENGINE=innodb; diff --git a/htdocs/install/mysql/tables/llx_c_lead_status.sql b/htdocs/install/mysql/tables/llx_c_lead_status.sql index 9027c0f6ca1..7905c5b6c05 100644 --- a/htdocs/install/mysql/tables/llx_c_lead_status.sql +++ b/htdocs/install/mysql/tables/llx_c_lead_status.sql @@ -1,5 +1,6 @@ -- Manage Lead -- Copyright (C) 2014 Florian HENRY +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -18,7 +19,7 @@ create table llx_c_lead_status ( rowid integer AUTO_INCREMENT PRIMARY KEY, code varchar(10), - label varchar(50), + label varchar(128), position integer, percent double(5,2), active tinyint DEFAULT 1 NOT NULL diff --git a/htdocs/install/mysql/tables/llx_c_paiement.sql b/htdocs/install/mysql/tables/llx_c_paiement.sql index 739d31e946d..535e5115e85 100644 --- a/htdocs/install/mysql/tables/llx_c_paiement.sql +++ b/htdocs/install/mysql/tables/llx_c_paiement.sql @@ -3,6 +3,7 @@ -- Copyright (C) 2004-2014 Laurent Destailleur -- Copyright (C) 2014 Alexandre Spangaro -- Copyright (C) 2017 Regis Houssin +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -24,7 +25,7 @@ create table llx_c_paiement id integer AUTO_INCREMENT PRIMARY KEY, entity integer DEFAULT 1 NOT NULL, -- multi company id code varchar(6) NOT NULL, - libelle varchar(62), + libelle varchar(128), type smallint, -- 0: input money, 1: output money, 2: input and output, 3: other active tinyint DEFAULT 1 NOT NULL, accountancy_code varchar(32) NULL, diff --git a/htdocs/install/mysql/tables/llx_c_paper_format.sql b/htdocs/install/mysql/tables/llx_c_paper_format.sql index 45c56ce379f..fd9fc672b68 100644 --- a/htdocs/install/mysql/tables/llx_c_paper_format.sql +++ b/htdocs/install/mysql/tables/llx_c_paper_format.sql @@ -1,5 +1,6 @@ -- ======================================================================== -- Copyright (C) 2007 Regis Houssin +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -20,7 +21,7 @@ create table llx_c_paper_format ( rowid integer AUTO_INCREMENT PRIMARY KEY, code varchar(16) NOT NULL, - label varchar(50) NOT NULL, + label varchar(128) NOT NULL, width float(6,2) DEFAULT 0, -- Largeur du papier height float(6,2) DEFAULT 0, -- Hauteur du papier unit varchar(5) NOT NULL, -- Mesure unit diff --git a/htdocs/install/mysql/tables/llx_c_partnership_type.sql b/htdocs/install/mysql/tables/llx_c_partnership_type.sql index d2a4a3b7549..99841f967cb 100644 --- a/htdocs/install/mysql/tables/llx_c_partnership_type.sql +++ b/htdocs/install/mysql/tables/llx_c_partnership_type.sql @@ -1,5 +1,6 @@ -- ======================================================================== -- Copyright (C) 2021 Laurent Destailleur +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -29,7 +30,7 @@ create table llx_c_partnership_type rowid integer AUTO_INCREMENT PRIMARY KEY, entity integer DEFAULT 1 NOT NULL, code varchar(32) NOT NULL, - label varchar(64) NOT NULL, + label varchar(128) NOT NULL, active tinyint DEFAULT 1 NOT NULL )ENGINE=innodb; diff --git a/htdocs/install/mysql/tables/llx_c_product_nature.sql b/htdocs/install/mysql/tables/llx_c_product_nature.sql index 3c467ce7cf8..e2efdf2a981 100644 --- a/htdocs/install/mysql/tables/llx_c_product_nature.sql +++ b/htdocs/install/mysql/tables/llx_c_product_nature.sql @@ -1,5 +1,7 @@ -- ======================================================================== -- Copyright (C) 2020 Florian HENRY +-- Copyright (C) 2022 Juanjo Menent + -- -- 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 @@ -19,6 +21,6 @@ CREATE TABLE llx_c_product_nature ( rowid integer AUTO_INCREMENT PRIMARY KEY, code tinyint NOT NULL, - label varchar(100), + label varchar(128), active tinyint DEFAULT 1 NOT NULL ) ENGINE=innodb; diff --git a/htdocs/install/mysql/tables/llx_c_productbatch_qcstatus.sql b/htdocs/install/mysql/tables/llx_c_productbatch_qcstatus.sql index 73daa56067a..06a2a76220d 100644 --- a/htdocs/install/mysql/tables/llx_c_productbatch_qcstatus.sql +++ b/htdocs/install/mysql/tables/llx_c_productbatch_qcstatus.sql @@ -1,5 +1,6 @@ -- ======================================================================== -- Copyright (C) 2012-2017 Noé Cendrier +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -21,6 +22,6 @@ CREATE TABLE llx_c_productbatch_qcstatus rowid integer AUTO_INCREMENT PRIMARY KEY, entity integer NOT NULL DEFAULT 1, code varchar(16) NOT NULL, - label varchar(50) NOT NULL, + label varchar(128) NOT NULL, active integer DEFAULT 1 NOT NULL )ENGINE=innodb; diff --git a/htdocs/install/mysql/tables/llx_c_propalst.sql b/htdocs/install/mysql/tables/llx_c_propalst.sql index 2a107b52735..7b3351a52b8 100644 --- a/htdocs/install/mysql/tables/llx_c_propalst.sql +++ b/htdocs/install/mysql/tables/llx_c_propalst.sql @@ -1,6 +1,7 @@ -- =================================================================== -- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville -- Copyright (C) 2004 Laurent Destailleur +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -21,7 +22,7 @@ create table llx_c_propalst ( id smallint PRIMARY KEY, code varchar(12) NOT NULL, - label varchar(30), + label varchar(128), active tinyint DEFAULT 1 NOT NULL )ENGINE=innodb; diff --git a/htdocs/install/mysql/tables/llx_c_prospectcontactlevel.sql b/htdocs/install/mysql/tables/llx_c_prospectcontactlevel.sql index 421b3452371..b9efe7967ad 100644 --- a/htdocs/install/mysql/tables/llx_c_prospectcontactlevel.sql +++ b/htdocs/install/mysql/tables/llx_c_prospectcontactlevel.sql @@ -1,5 +1,6 @@ -- =================================================================== -- Copyright (C) 2020 Open-Dsi +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -19,7 +20,7 @@ create table llx_c_prospectcontactlevel ( code varchar(12) PRIMARY KEY, - label varchar(30), + label varchar(128), sortorder smallint, active smallint DEFAULT 1 NOT NULL, module varchar(32) NULL diff --git a/htdocs/install/mysql/tables/llx_c_prospectlevel.sql b/htdocs/install/mysql/tables/llx_c_prospectlevel.sql index 70e26dc3a26..31d3abcb5bc 100644 --- a/htdocs/install/mysql/tables/llx_c_prospectlevel.sql +++ b/htdocs/install/mysql/tables/llx_c_prospectlevel.sql @@ -1,5 +1,6 @@ -- =================================================================== -- Copyright (C) 2008 Laurent Destailleur +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -19,7 +20,7 @@ create table llx_c_prospectlevel ( code varchar(12) PRIMARY KEY, - label varchar(30), + label varchar(128), sortorder smallint, active smallint DEFAULT 1 NOT NULL, module varchar(32) NULL diff --git a/htdocs/install/mysql/tables/llx_c_recruitment_origin.sql b/htdocs/install/mysql/tables/llx_c_recruitment_origin.sql index b18f7eb383c..2d1c6682900 100644 --- a/htdocs/install/mysql/tables/llx_c_recruitment_origin.sql +++ b/htdocs/install/mysql/tables/llx_c_recruitment_origin.sql @@ -1,5 +1,6 @@ -- ======================================================================== -- Copyright (C) 2005-2016 Laurent Destailleur +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -28,6 +29,6 @@ create table llx_c_recruitment_origin ( rowid integer AUTO_INCREMENT PRIMARY KEY, code varchar(32) NOT NULL, - label varchar(64) NOT NULL, + label varchar(128) NOT NULL, active tinyint DEFAULT 1 NOT NULL )ENGINE=innodb; diff --git a/htdocs/install/mysql/tables/llx_c_shipment_mode.sql b/htdocs/install/mysql/tables/llx_c_shipment_mode.sql index 6f49f682f24..4f0d584d6d7 100644 --- a/htdocs/install/mysql/tables/llx_c_shipment_mode.sql +++ b/htdocs/install/mysql/tables/llx_c_shipment_mode.sql @@ -1,5 +1,6 @@ -- =================================================================== -- Copyright (C) 2003 Rodolphe Quiedeville +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -22,7 +23,7 @@ create table llx_c_shipment_mode entity integer DEFAULT 1 NOT NULL, -- multi company id tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, code varchar(30) NOT NULL, - libelle varchar(50) NOT NULL, + libelle varchar(128) NOT NULL, description text, tracking varchar(255) NULL, active tinyint DEFAULT 0, diff --git a/htdocs/install/mysql/tables/llx_c_shipment_package_type.sql b/htdocs/install/mysql/tables/llx_c_shipment_package_type.sql index e510352eba2..92dd861fd49 100644 --- a/htdocs/install/mysql/tables/llx_c_shipment_package_type.sql +++ b/htdocs/install/mysql/tables/llx_c_shipment_package_type.sql @@ -2,7 +2,7 @@ create table llx_c_shipment_package_type ( rowid integer AUTO_INCREMENT PRIMARY KEY, - label varchar(50) NOT NULL, -- Short name + label varchar(128) NOT NULL, -- Short name description varchar(255), -- Description active integer DEFAULT 1 NOT NULL, -- Active or not entity integer DEFAULT 1 NOT NULL -- Multi company id diff --git a/htdocs/install/mysql/tables/llx_c_stcomm.sql b/htdocs/install/mysql/tables/llx_c_stcomm.sql index 5f31666b28c..aa5d58a280f 100644 --- a/htdocs/install/mysql/tables/llx_c_stcomm.sql +++ b/htdocs/install/mysql/tables/llx_c_stcomm.sql @@ -1,6 +1,7 @@ -- ======================================================================== -- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville -- Copyright (C) 2004-2015 Laurent Destailleur +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -21,7 +22,7 @@ create table llx_c_stcomm ( id integer PRIMARY KEY, code varchar(12) NOT NULL, - libelle varchar(30), + libelle varchar(128), picto varchar(128), active tinyint default 1 NOT NULL )ENGINE=innodb; diff --git a/htdocs/install/mysql/tables/llx_c_stcommcontact.sql b/htdocs/install/mysql/tables/llx_c_stcommcontact.sql index c906e4f5103..7ab74e123f6 100644 --- a/htdocs/install/mysql/tables/llx_c_stcommcontact.sql +++ b/htdocs/install/mysql/tables/llx_c_stcommcontact.sql @@ -1,5 +1,6 @@ -- ======================================================================== -- Copyright (C) 2020 Open-Dsi +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -20,7 +21,7 @@ create table llx_c_stcommcontact ( id integer PRIMARY KEY, code varchar(12) NOT NULL, - libelle varchar(30), + libelle varchar(128), picto varchar(128), active tinyint default 1 NOT NULL )ENGINE=innodb; diff --git a/htdocs/install/mysql/tables/llx_c_type_contact.sql b/htdocs/install/mysql/tables/llx_c_type_contact.sql index c222b0fe273..4b12661657e 100644 --- a/htdocs/install/mysql/tables/llx_c_type_contact.sql +++ b/htdocs/install/mysql/tables/llx_c_type_contact.sql @@ -1,6 +1,7 @@ -- ======================================================================== -- Copyright (C) 2005 Patrick Rouillon -- Copyright (C) 2005 Laurent Destailleur +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -32,7 +33,7 @@ create table llx_c_type_contact element varchar(30) NOT NULL, source varchar(8) DEFAULT 'external' NOT NULL, code varchar(32) NOT NULL, - libelle varchar(64) NOT NULL, + libelle varchar(128) NOT NULL, active tinyint DEFAULT 1 NOT NULL, module varchar(32) NULL, position integer NOT NULL DEFAULT 0 diff --git a/htdocs/install/mysql/tables/llx_c_type_container.sql b/htdocs/install/mysql/tables/llx_c_type_container.sql index 53a89fe873b..6de3d041669 100644 --- a/htdocs/install/mysql/tables/llx_c_type_container.sql +++ b/htdocs/install/mysql/tables/llx_c_type_container.sql @@ -1,5 +1,6 @@ -- ======================================================================== -- Copyright (C) 2018 Laurent Destailleur +-- Copyright (C) 2022 Juanjo Menent -- -- -- This program is free software; you can redistribute it and/or modify @@ -30,7 +31,7 @@ create table llx_c_type_container rowid integer AUTO_INCREMENT PRIMARY KEY, code varchar(32) NOT NULL, entity integer DEFAULT 1 NOT NULL, -- multi company id - label varchar(64) NOT NULL, + label varchar(128) NOT NULL, module varchar(32) NULL, active tinyint DEFAULT 1 NOT NULL )ENGINE=innodb; diff --git a/htdocs/install/mysql/tables/llx_c_type_fees.sql b/htdocs/install/mysql/tables/llx_c_type_fees.sql index 3f9c49c95d7..d620e38cf69 100644 --- a/htdocs/install/mysql/tables/llx_c_type_fees.sql +++ b/htdocs/install/mysql/tables/llx_c_type_fees.sql @@ -2,6 +2,7 @@ -- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville -- Copyright (C) 2004 Laurent Destailleur -- Copyright (C) 2014 Alexandre Spangaro +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -23,7 +24,7 @@ create table llx_c_type_fees ( id integer AUTO_INCREMENT PRIMARY KEY, code varchar(12) NOT NULL, - label varchar(30), + label varchar(128), type integer DEFAULT 0, -- 0=type product, 1=type service accountancy_code varchar(32) NULL, active tinyint DEFAULT 1 NOT NULL, diff --git a/htdocs/install/mysql/tables/llx_c_type_resource.sql b/htdocs/install/mysql/tables/llx_c_type_resource.sql index e490755b1f7..f88f502a038 100644 --- a/htdocs/install/mysql/tables/llx_c_type_resource.sql +++ b/htdocs/install/mysql/tables/llx_c_type_resource.sql @@ -1,5 +1,6 @@ -- ======================================================================== -- Copyright (C) 2014 Jean-François Ferry +-- Copyright (C) 2022 Juanjo Menent -- -- -- This program is free software; you can redistribute it and/or modify @@ -29,6 +30,6 @@ create table llx_c_type_resource ( rowid integer AUTO_INCREMENT PRIMARY KEY, code varchar(32) NOT NULL, - label varchar(64) NOT NULL, + label varchar(128) NOT NULL, active tinyint DEFAULT 1 NOT NULL )ENGINE=innodb; diff --git a/htdocs/install/mysql/tables/llx_c_typent.sql b/htdocs/install/mysql/tables/llx_c_typent.sql index 0b15e70b15b..69253f98857 100644 --- a/htdocs/install/mysql/tables/llx_c_typent.sql +++ b/htdocs/install/mysql/tables/llx_c_typent.sql @@ -1,6 +1,7 @@ -- ======================================================================== -- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville -- Copyright (C) 2004 Laurent Destailleur +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -21,7 +22,7 @@ create table llx_c_typent ( id integer PRIMARY KEY, code varchar(12) NOT NULL, - libelle varchar(64), + libelle varchar(128), fk_country integer NULL, -- Defined only to have specific list for countries that can't use generic list (like argentina that need type A or B) active tinyint DEFAULT 1 NOT NULL, module varchar(32) NULL, diff --git a/htdocs/install/mysql/tables/llx_c_units.sql b/htdocs/install/mysql/tables/llx_c_units.sql index 7b2424a8f54..94046d25b87 100644 --- a/htdocs/install/mysql/tables/llx_c_units.sql +++ b/htdocs/install/mysql/tables/llx_c_units.sql @@ -2,6 +2,7 @@ -- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville -- Copyright (C) 2004 Laurent Destailleur -- Copyright (C) 2012 Cédric Salvador +-- Copyright (C) 2022 Juanjo Menent -- -- 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 @@ -23,7 +24,7 @@ create table llx_c_units( code varchar(3), sortorder smallint, scale integer, - label varchar(50), + label varchar(128), short_label varchar(5), unit_type varchar(10), active tinyint DEFAULT 1 NOT NULL