refs #5347
This commit is contained in:
parent
203e80afa8
commit
6e52b3b968
|
@ -37,18 +37,18 @@ BEGIN
|
|||
DECLARE vHasCoreVnl BOOLEAN;
|
||||
DECLARE vMandateTypeFk INT;
|
||||
|
||||
SELECT dafaultPayMethodFk,
|
||||
SELECT defaultPayMethodFk,
|
||||
defaultDueDay,
|
||||
defaultCredit,
|
||||
defaultIsTaxDataChecked,
|
||||
defaultHasCoreVnl,
|
||||
defaultMandateTypeFk
|
||||
INTO vPayMethodFk,
|
||||
vDueDay,
|
||||
vDefaultCredit,
|
||||
vIsTaxDataChecked,
|
||||
vHasCoreVnl,
|
||||
vMandateTypeFk
|
||||
vDueDay,
|
||||
vDefaultCredit,
|
||||
vIsTaxDataChecked,
|
||||
vHasCoreVnl,
|
||||
vMandateTypeFk
|
||||
FROM clientConfig;
|
||||
|
||||
INSERT INTO `client`
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
DROP PROCEDURE IF EXISTS vn.clientCreate;
|
||||
|
||||
ALTER TABLE vn.clientConfig ADD dafaultPayMethodFk tinyint(3) unsigned NULL;
|
||||
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;
|
||||
|
@ -10,7 +10,7 @@ ALTER TABLE vn.clientConfig ADD CONSTRAINT clientNewConfigPayMethod_FK FOREIGN K
|
|||
ALTER TABLE vn.clientConfig ADD CONSTRAINT clientNewConfigMandateType_FK FOREIGN KEY (defaultMandateTypeFk) REFERENCES vn.mandateType(id);
|
||||
|
||||
UPDATE vn.clientConfig
|
||||
SET dafaultPayMethodFk = 4,
|
||||
SET defaultPayMethodFk = 4,
|
||||
defaultDueDay = 5,
|
||||
defaultCredit = 300.0,
|
||||
defaultIsTaxDataChecked = 1,
|
||||
|
|
Loading…
Reference in New Issue