From 0e96cc1619c788a30134453e1211485e988ae4e5 Mon Sep 17 00:00:00 2001 From: fredrikphotowall <35255659+fredrikphotowall@users.noreply.github.com> Date: Mon, 19 Oct 2020 15:59:54 +0200 Subject: [PATCH] P5-5986 Add Bring delivery methods to SE,FI,DK (#128) --- migrations/000.248.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 migrations/000.248.sql diff --git a/migrations/000.248.sql b/migrations/000.248.sql new file mode 100644 index 0000000..3040dd5 --- /dev/null +++ b/migrations/000.248.sql @@ -0,0 +1,13 @@ +-- P5-5986 Replace DHL Freight/Economy with Bring on SE,FI,DK + +-- Replace dhlFreightPrivate in Sweden with bringPrivate +UPDATE "delivery-methods_prices" SET method = 8 WHERE method = 12 AND territory = 'SE'; + +-- Replace dhlFreightBusiness in Sweden with bringCompany +UPDATE "delivery-methods_prices" SET method = 9 WHERE method = 13 AND territory = 'SE'; + +-- Replace dhlEconomyEU in Finland and Denmark with bringPrivate and bringBusiness +UPDATE "delivery-methods_prices" SET method = 8 WHERE method = 15 AND territory in ('FI','DK'); +INSERT INTO "delivery-methods_prices" (method, option, option_value, currency, price, territory) + SELECT 9, '', '', currency, 0, territory FROM "delivery-methods_prices" WHERE method=8 AND territory in ('FI','DK'); +