From fe32b81d9e43a30ed8a403af34be94aeed3de76d Mon Sep 17 00:00:00 2001 From: vicent Date: Thu, 31 Mar 2022 10:50:05 +0200 Subject: [PATCH] sql update --- db/changes/10440-fallas/00-country.sql | 2 ++ db/changes/10440-fallas/00-worker.sql | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/db/changes/10440-fallas/00-country.sql b/db/changes/10440-fallas/00-country.sql index 06b4f9b94..6cc4ce1f9 100644 --- a/db/changes/10440-fallas/00-country.sql +++ b/db/changes/10440-fallas/00-country.sql @@ -86,3 +86,5 @@ WHERE `codpais`=408; UPDATE `vn2008`.`payroll_pais` SET `pais`='COREA SUR (REPÚBLICA) ' WHERE `codpais`=410; + +RENAME TABLE `vn2008`.`payroll_pais` TO `vn2008`.`payroll_pais__`; \ No newline at end of file diff --git a/db/changes/10440-fallas/00-worker.sql b/db/changes/10440-fallas/00-worker.sql index 5688ebdf1..0e0def841 100644 --- a/db/changes/10440-fallas/00-worker.sql +++ b/db/changes/10440-fallas/00-worker.sql @@ -46,4 +46,6 @@ UPDATE `vn`.`worker` `w` JOIN `vn`.`person` `p` ON `p`.`workerFk` = `w`.`id` JOIN `postgresql`.`profile` `pr` ON `pr`.`person_id` = `p`.`id` JOIN `vn2008`.`profile_labour_payroll` pl ON `pl`.`profile_id` = `pr`.`profile_id` - SET `w`.`SSN` = CONCAT(`pl`.`NSSProvincia`, `pl`.`NssNumero`, `pl`.`NssDC`); \ No newline at end of file + SET `w`.`SSN` = CONCAT(`pl`.`NSSProvincia`, `pl`.`NssNumero`, `pl`.`NssDC`); + +RENAME TABLE `vn2008`.`profile_labour_payroll` TO `vn2008`.`profile_labour_payroll__`;