From cb05b2105acd07737796ddc950c81108b72b6902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alo=C3=AFs=20Micard?= Date: Fri, 9 Jun 2023 17:09:48 +0200 Subject: [PATCH 1/2] Bump ref_supplier in llx_reception --- htdocs/install/mysql/tables/llx_reception.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/install/mysql/tables/llx_reception.sql b/htdocs/install/mysql/tables/llx_reception.sql index 9256aaf6abe..d506215ee4a 100644 --- a/htdocs/install/mysql/tables/llx_reception.sql +++ b/htdocs/install/mysql/tables/llx_reception.sql @@ -29,7 +29,7 @@ create table llx_reception fk_projet integer DEFAULT NULL, ref_ext varchar(30), -- reference into an external system (not used by dolibarr) - ref_supplier varchar(128), -- supplier number + ref_supplier varchar(255), -- supplier number date_creation datetime, -- date de creation fk_user_author integer, -- author of creation From 60326e3a1eb8aa3bb3c895122c92f09dff9defdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alo=C3=AFs=20Micard?= Date: Fri, 9 Jun 2023 17:18:55 +0200 Subject: [PATCH 2/2] Add migration --- htdocs/install/mysql/migration/17.0.0-18.0.0.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/install/mysql/migration/17.0.0-18.0.0.sql b/htdocs/install/mysql/migration/17.0.0-18.0.0.sql index fc4f915e4ae..6576b37e3ff 100644 --- a/htdocs/install/mysql/migration/17.0.0-18.0.0.sql +++ b/htdocs/install/mysql/migration/17.0.0-18.0.0.sql @@ -466,3 +466,7 @@ ALTER TABLE llx_contratdet ADD INDEX idx_contratdet_statut (statut); -- VMYSQL4.1 DROP INDEX uk_actioncomm_ref on llx_actioncomm; -- VPGSQL8.2 DROP INDEX uk_actioncomm_ref; ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_ref (ref, entity); + +-- Bump llx_reception.ref_supplier to allow up to 255 characters to match llx_commande_fournisseur.ref_supplier. +-- See: https://github.com/Dolibarr/dolibarr/pull/25034 +ALTER TABLE llx_reception MODIFY COLUMN ref_supplier varchar(255);