18 lines
948 B
SQL
18 lines
948 B
SQL
DROP PROCEDURE IF EXISTS vn.clientCreate;
|
|
|
|
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 (dafaultPayMethodFk) REFERENCES vn.payMethod(id);
|
|
ALTER TABLE vn.clientConfig ADD CONSTRAINT clientNewConfigMandateType_FK FOREIGN KEY (defaultMandateTypeFk) REFERENCES vn.mandateType(id);
|
|
|
|
UPDATE vn.clientConfig
|
|
SET defaultPayMethodFk = 4,
|
|
defaultDueDay = 5,
|
|
defaultCredit = 300.0,
|
|
defaultIsTaxDataChecked = 1,
|
|
defaultHasCoreVnl = 1,
|
|
defaultMandateTypeFk = 2; |