From 7b40add7e1674fe4a270d371ac5c7cf05971b7ad Mon Sep 17 00:00:00 2001 From: Fredrik Ringqvist <35255659+fredrikphotowall@users.noreply.github.com> Date: Fri, 28 Apr 2023 15:09:06 +0200 Subject: [PATCH] FedEx Express EU and standard for FR (#321) --- migrations/000.412.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 migrations/000.412.sql diff --git a/migrations/000.412.sql b/migrations/000.412.sql new file mode 100644 index 0000000..8f005fb --- /dev/null +++ b/migrations/000.412.sql @@ -0,0 +1,15 @@ +-- Add new delivery methods +INSERT INTO "delivery-methods" (id, name) VALUES (18, 'fedexExpressEU'); +INSERT INTO "delivery-methods" (id, name) VALUES (19, 'fedexStandardEU'); + +-- Replace DHL Express in all EU countries with own PW markets with Fedex Express +UPDATE "delivery-methods_prices" +SET method = (select id from "delivery-methods" where name = 'fedexExpressEU') +WHERE method = (select id from "delivery-methods" where name = 'dhlExpress') +AND territory in ('AT','BE','DE','DK','EE','ES','FI','FR','IE','IT','LU','NL','PL','RO','SE'); + +-- Replace DHL Economy in France with Fedex Standard +UPDATE "delivery-methods_prices" +SET method = (select id from "delivery-methods" where name = 'fedexStandardEU') +WHERE method = (select id from "delivery-methods" where name = 'dhlEconomyEU') +AND territory = 'FR';