Add defaultfortype into table for email templates.

This commit is contained in:
Laurent Destailleur 2023-04-07 10:34:20 +02:00
parent 403d6137e8
commit fd240cd503
2 changed files with 2 additions and 0 deletions

View File

@ -386,3 +386,4 @@ ALTER TABLE llx_product_fournisseur_price_log ADD INDEX idx_product_fournisseur_
ALTER TABLE llx_bordereau_cheque ADD COLUMN label varchar(255) AFTER ref;
ALTER TABLE llx_c_email_templates add COLUMN defaultfortype smallint DEFAULT 0;

View File

@ -30,6 +30,7 @@ create table llx_c_email_templates
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
label varchar(180), -- Label of predefined email
position smallint, -- Position
defaultfortype smallint DEFAULT 0, -- 1=Use this template by default when creating a new email for this type
enabled varchar(255) DEFAULT '1', -- Condition to have this module visible
active tinyint DEFAULT 1 NOT NULL,
email_from varchar(255), -- default email from