From 20a57550d3fc937834f4d7193f5d94a8b935c9d2 Mon Sep 17 00:00:00 2001 From: Kamel Khelifa Date: Mon, 17 Mar 2025 14:52:32 +0100 Subject: [PATCH] Add type column on webhook target table for determine if the trigger is blocking or not (and in the futur possibly asynchrone) --- htdocs/install/mysql/migration/21.0.0-22.0.0.sql | 2 ++ htdocs/install/mysql/tables/llx_webhook_target-webhook.sql | 1 + 2 files changed, 3 insertions(+) diff --git a/htdocs/install/mysql/migration/21.0.0-22.0.0.sql b/htdocs/install/mysql/migration/21.0.0-22.0.0.sql index a545039e3b8..9e15b0f4301 100644 --- a/htdocs/install/mysql/migration/21.0.0-22.0.0.sql +++ b/htdocs/install/mysql/migration/21.0.0-22.0.0.sql @@ -207,3 +207,5 @@ DELETE FROM llx_const WHERE name = 'STOCK_ALLOW_NEGATIVE_TRANSFER' AND value = 1 ALTER TABLE llx_links ADD COLUMN share varchar(128) NULL AFTER objectid; ALTER TABLE llx_links ADD COLUMN share_pass varchar(32) NULL AFTER share; + +ALTER TABLE llx_webhook_target ADD COLUMN type integer DEFAULT 0 NOT NULL AFTER label; diff --git a/htdocs/install/mysql/tables/llx_webhook_target-webhook.sql b/htdocs/install/mysql/tables/llx_webhook_target-webhook.sql index cef97389ac8..255d16171c6 100644 --- a/htdocs/install/mysql/tables/llx_webhook_target-webhook.sql +++ b/htdocs/install/mysql/tables/llx_webhook_target-webhook.sql @@ -19,6 +19,7 @@ CREATE TABLE llx_webhook_target ( rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL, ref varchar(128) NOT NULL, label varchar(255), + type integer DEFAULT 0 NOT NULL, description text, note_public text, note_private text,