diff --git a/migrations/000.316.sql b/migrations/000.316.sql new file mode 100644 index 0000000..1521b48 --- /dev/null +++ b/migrations/000.316.sql @@ -0,0 +1,11 @@ +-- P5-6960 Fix be-fr and ca-fr delivery methods by adding French territory translations + +-- Add territory translations to make checkout/delivery methods code identify correct country +INSERT INTO "i18n-territories_names" (territory, language, name) VALUES + ('BE', 'fr', 'Belgique'), + ('CA', 'fr', 'Canada'); + +-- Adjust BE price to match correct VAT +UPDATE "delivery-methods_prices" + SET price = (7 / (SELECT vat FROM markets WHERE name = 'BE')) + WHERE territory = 'BE' AND currency = 'EUR' AND method = 14;