Files
database/migrations/000.248.sql
T

14 lines
754 B
SQL

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