From 2454b651d46f06c6adcd2dbdd293bcd4a3c4d442 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 2 Mar 2026 12:45:38 +0100 Subject: [PATCH] Switch historic and setup from crabe to sponge --- htdocs/install/mysql/migration/23.0.0-24.0.0.sql | 6 ++++++ 1 file changed, 6 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 10dc9df7bf7..118583e2d41 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 @@ -151,4 +151,10 @@ ALTER TABLE llx_blockedlog ADD COLUMN pos_source varchar(32) 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; +-- Switch all crabe templates into sponge +UPDATE llx_facture SET model_pdf = 'sponge' WHERE model_pdf = 'crabe'; +UPDATE llx_const SET value = 'sponge' WHERE value = 'crabe' AND name ='FACTURE_ADDON_PDF'; +UPDATE llx_document_model as dm SET nom = 'sponge' WHERE nom = 'crabe' AND type ='invoice' AND NOT EXISTS (SELECT nom FROM llx_document_model AS dm2 WHERE nom = 'sponge' AND type = 'invoice' and dm2.entity = dm.entity); + + -- end of migration