From b073e61dd5fa9325fd3420aaab490c48da47b770 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 1 Jun 2026 23:25:56 +0200 Subject: [PATCH] Add column for reversed chain signature --- htdocs/install/mysql/migration/23.0.0-24.0.0.sql | 1 + htdocs/install/mysql/tables/llx_blockedlog.key.sql | 1 + htdocs/install/mysql/tables/llx_blockedlog.sql | 1 + 3 files changed, 3 insertions(+) diff --git a/htdocs/install/mysql/migration/23.0.0-24.0.0.sql b/htdocs/install/mysql/migration/23.0.0-24.0.0.sql index d0f32fbe6cc..b0bf2c2ee6d 100644 --- a/htdocs/install/mysql/migration/23.0.0-24.0.0.sql +++ b/htdocs/install/mysql/migration/23.0.0-24.0.0.sql @@ -159,6 +159,7 @@ ALTER TABLE llx_adherent_type ADD COLUMN minimumamount double(24,8) DEFAULT N ALTER TABLE llx_adherent_type ADD COLUMN amountformuladescription text; ALTER TABLE llx_blockedlog ADD COLUMN pos_source varchar(32) DEFAULT ''; +ALTER TABLE llx_blockedlog ADD COLUMN signature_reverse varchar(100) DEFAULT ''; ALTER TABLE llx_website_page ADD COLUMN keep_history integer DEFAULT 5; ALTER TABLE llx_website_page ADD COLUMN metarobots varchar(128) after keywords; diff --git a/htdocs/install/mysql/tables/llx_blockedlog.key.sql b/htdocs/install/mysql/tables/llx_blockedlog.key.sql index dd1238ebca1..045ba381b04 100644 --- a/htdocs/install/mysql/tables/llx_blockedlog.key.sql +++ b/htdocs/install/mysql/tables/llx_blockedlog.key.sql @@ -20,6 +20,7 @@ ALTER TABLE llx_blockedlog ADD INDEX idx_entity_action_certified (entity,action) ALTER TABLE llx_blockedlog ADD INDEX idx_ref_object (ref_object); -- VMYSQL4.3 ALTER TABLE llx_blockedlog ADD INDEX idx_linktoref (linktoref(255)); ALTER TABLE llx_blockedlog ADD INDEX signature (signature); +ALTER TABLE llx_blockedlog ADD INDEX signature_reverse (signature_reverse); -- For debug fields ALTER TABLE llx_blockedlog ADD INDEX fk_object_element (fk_object,element); diff --git a/htdocs/install/mysql/tables/llx_blockedlog.sql b/htdocs/install/mysql/tables/llx_blockedlog.sql index ca338b65bd3..23b1f9d697b 100644 --- a/htdocs/install/mysql/tables/llx_blockedlog.sql +++ b/htdocs/install/mysql/tables/llx_blockedlog.sql @@ -35,6 +35,7 @@ CREATE TABLE llx_blockedlog object_data mediumtext, -- field included into line signature -- the signature of line signature varchar(100) NOT NULL, -- the hash of the key for signature with previous hash before + signature_reverse varchar(100) DEFAULT '', -- the hash of the key for reverse signature with following hash after -- fields used for debug only element varchar(50), fk_user integer,