From 429f01e72a280e0bd4064b963a6d9f0e98f41b79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Cendrier?= <81741011+altairis-noe@users.noreply.github.com> Date: Tue, 17 Feb 2026 17:25:19 +0100 Subject: [PATCH] FIX: linktoref should be able to receive more than 255 chars (#37262) Co-authored-by: Laurent Destailleur --- htdocs/install/mysql/migration/22.0.0-23.0.0.sql | 3 ++- htdocs/install/mysql/tables/llx_blockedlog.sql | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/install/mysql/migration/22.0.0-23.0.0.sql b/htdocs/install/mysql/migration/22.0.0-23.0.0.sql index 3810eaa4e20..5059558a70b 100644 --- a/htdocs/install/mysql/migration/22.0.0-23.0.0.sql +++ b/htdocs/install/mysql/migration/22.0.0-23.0.0.sql @@ -318,7 +318,8 @@ INSERT INTO llx_c_forme_juridique (fk_pays, code, libelle, active) VALUES (5, '5 ALTER TABLE llx_oauth_token ADD COLUMN tokenstring_refresh text NULL AFTER tokenstring; ALTER TABLE llx_oauth_token ADD COLUMN expire_at datetime NULL AFTER lastaccess; -ALTER TABLE llx_blockedlog ADD COLUMN linktoref varchar(255); +ALTER TABLE llx_blockedlog ADD COLUMN linktoref text; +ALTER TABLE llx_blockedlog MODIFY COLUMN linktoref text; ALTER TABLE llx_blockedlog ADD COLUMN linktype varchar(16); ALTER TABLE llx_blockedlog ADD COLUMN module_source varchar(32) DEFAULT '' AFTER action; ALTER TABLE llx_blockedlog ADD COLUMN amounts_taxexcl double(24,8) DEFAULT NULL AFTER amounts; diff --git a/htdocs/install/mysql/tables/llx_blockedlog.sql b/htdocs/install/mysql/tables/llx_blockedlog.sql index 0d9bde81e06..aa12775d4c4 100644 --- a/htdocs/install/mysql/tables/llx_blockedlog.sql +++ b/htdocs/install/mysql/tables/llx_blockedlog.sql @@ -29,7 +29,7 @@ CREATE TABLE llx_blockedlog ref_object varchar(255), -- field included into line signature (denormalized data from object_data) date_object datetime, -- field included into line signature (denormalized data from object_data) user_fullname varchar(255), -- field included into line signature. User recording the event. - linktoref varchar(10000), -- field included into line signature. Link to another ref_object. + linktoref text, -- field included into line signature. Link to another ref_object. linktype varchar(16), -- field included into line signature. Link type. object_data mediumtext, -- field included into line signature -- the signature of line