Merge branch 'develop_new_webhook_add_type_sql' of

github.com:OPEN-DSI/dolibarr into
OPEN-DSI-develop_new_webhook_add_type_sql
This commit is contained in:
ldestailleur
2025-03-19 14:47:34 +01:00
2 changed files with 4 additions and 0 deletions

View File

@@ -208,9 +208,12 @@ 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_expeditiondet ADD COLUMN fk_parent integer NULL AFTER fk_product; -- for sublines
ALTER TABLE llx_expeditiondet ADD INDEX idx_expeditiondet_fk_parent (fk_parent);
--ALTER TABLE llx_expeditiondet ADD CONSTRAINT fk_expeditiondet_fk_product FOREIGN KEY (fk_product) REFERENCES llx_product (rowid);
--ALTER TABLE llx_expeditiondet ADD CONSTRAINT fk_expeditiondet_fk_parent FOREIGN KEY (fk_parent) REFERENCES llx_expeditiondet (rowid);
UPDATE llx_expeditiondet as ed SET ed.fk_product = (SELECT cd.fk_product FROM llx_commandedet as cd WHERE cd.rowid = ed.fk_elementdet AND ed.element_type = 'commande') AND ed.fk_product IS NULL;
ALTER TABLE llx_webhook_target ADD COLUMN type integer DEFAULT 0 NOT NULL AFTER label;

View File

@@ -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,