2023-07-06 09:51:04 +00:00
|
|
|
ALTER TABLE `vn`.`clientConfig` ADD defaultPayMethodFk tinyint(3) unsigned NULL;
|
|
|
|
ALTER TABLE `vn`.`clientConfig` ADD defaultDueDay int unsigned NULL;
|
|
|
|
ALTER TABLE `vn`.`clientConfig` ADD defaultCredit decimal(10, 2) NULL;
|
|
|
|
ALTER TABLE `vn`.`clientConfig` ADD defaultIsTaxDataChecked tinyint(1) NULL;
|
|
|
|
ALTER TABLE `vn`.`clientConfig` ADD defaultHasCoreVnl boolean NULL;
|
|
|
|
ALTER TABLE `vn`.`clientConfig` ADD defaultMandateTypeFk smallint(5) NULL;
|
|
|
|
ALTER TABLE `vn`.`clientConfig` ADD CONSTRAINT clientNewConfigPayMethod_FK FOREIGN KEY (defaultPayMethodFk) REFERENCES vn.payMethod(id);
|
|
|
|
ALTER TABLE `vn`.`clientConfig` ADD CONSTRAINT clientNewConfigMandateType_FK FOREIGN KEY (defaultMandateTypeFk) REFERENCES vn.mandateType(id);
|
2023-06-22 15:46:21 +00:00
|
|
|
|
2023-07-06 09:51:04 +00:00
|
|
|
UPDATE `vn`.`clientConfig`
|
2023-06-28 12:07:37 +00:00
|
|
|
SET defaultPayMethodFk = 4,
|
2023-06-22 15:46:21 +00:00
|
|
|
defaultDueDay = 5,
|
|
|
|
defaultCredit = 300.0,
|
|
|
|
defaultIsTaxDataChecked = 1,
|
|
|
|
defaultHasCoreVnl = 1,
|
2023-07-03 12:08:50 +00:00
|
|
|
defaultMandateTypeFk = 2
|
2023-07-06 09:51:04 +00:00
|
|
|
WHERE id = 1;
|