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'); +