From 6e52b3b968bf8546936a3cf1754b87177c2b3146 Mon Sep 17 00:00:00 2001 From: pablone Date: Wed, 28 Jun 2023 14:07:37 +0200 Subject: [PATCH] refs #5347 --- db/changes/232601/00-client_create.sql | 12 ++++++------ db/changes/232601/00-client_create2.sql | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/db/changes/232601/00-client_create.sql b/db/changes/232601/00-client_create.sql index 42dd353ba..0728ba05e 100644 --- a/db/changes/232601/00-client_create.sql +++ b/db/changes/232601/00-client_create.sql @@ -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` diff --git a/db/changes/232601/00-client_create2.sql b/db/changes/232601/00-client_create2.sql index 1191cc21c..99e25fdc8 100644 --- a/db/changes/232601/00-client_create2.sql +++ b/db/changes/232601/00-client_create2.sql @@ -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,