feat: refs #7731 changes request
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Robert Ferrús 2025-01-08 13:27:23 +01:00
parent df77ec5552
commit 80fc3235e9
1 changed files with 7 additions and 5 deletions

View File

@ -8,14 +8,16 @@ ALTER TABLE vn.supplier
-- client
UPDATE vn.client c
JOIN country c2 ON c2.id = c.countryFk
SET c.viesCode = c2.code;
SET c.viesCode = c2.code
WHERE c.isVies;
UPDATE client c
JOIN country c2 ON c2.id = c.countryFk
SET c.viesCode = 'FR'
WHERE c2.name = 'Mónaco';
WHERE c2.name = 'Mónaco' AND c.isVies;
-- supplier
UPDATE supplier s
JOIN country c ON c.id = s.countryFk
SET s.viesCode = c.code;
SET s.viesCode = c.code
WHERE s.isVies;