Skip to content

Commit eef601a

Browse files
committed
Dolibarr#35271 [SQL] add: mandatory signature fields
Data model for add feature we want add checkbox on for tell who c can sign in contact Ex: On contract card we want 2/3 signatories -- Later we add feature for link external signature link with mandatory signautre fields on contact.
1 parent be97a6c commit eef601a

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

htdocs/install/mysql/migration/22.0.0-23.0.0.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,6 @@ ALTER TABLE llx_subscription ADD INDEX idx_subscription_dateadh (dateadh);
162162

163163
ALTER TABLE llx_bank_import ADD COLUMN fitid varchar(255) NULL after id_account; -- OFX Financial Institution Transaction ID "FITID"
164164

165+
ALTER TABLE llx_element_contact ADD mandatory_signature TINYINT NULL AFTER element_id;
166+
165167
-- end of migration

htdocs/install/mysql/tables/llx_element_contact.sql

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@
2020

2121
create table llx_element_contact
2222
(
23-
rowid integer AUTO_INCREMENT PRIMARY KEY,
24-
datecreate datetime NULL, -- date of creation of record
25-
statut smallint DEFAULT 5, -- 5 inactif, 4 actif
23+
rowid integer AUTO_INCREMENT PRIMARY KEY,
24+
datecreate datetime NULL, -- date of creation of record
25+
statut smallint DEFAULT 5, -- 5 inactif, 4 actif
2626

27-
element_id int NOT NULL, -- ID of element.
28-
fk_c_type_contact int NOT NULL, -- nature of contact.
29-
fk_socpeople integer NOT NULL -- ID of contact
27+
element_id int NOT NULL, -- ID of element.
28+
mandatory_signature tinyint(4) DEFAULT NULL, -- Indicate if signature is mandatory
29+
fk_c_type_contact int NOT NULL, -- nature of contact.
30+
fk_socpeople integer NOT NULL -- ID of contact
3031
)ENGINE=innodb;

0 commit comments

Comments
 (0)