Files
database/migrations/000.423.sql
T

12 lines
534 B
SQL

-- Replace dhlEconomyUk with fedexStandardWorld in GB
UPDATE "delivery-methods_prices"
SET method = (select id from "delivery-methods" where name = 'fedexStandardWorld')
WHERE method = (select id from "delivery-methods" where name = 'dhlEconomyUK')
AND territory = 'GB';
-- Replace dhl (express) with fedexStandardWorld in GB
UPDATE "delivery-methods_prices"
SET method = (select id from "delivery-methods" where name = 'fedexExpressWorld')
WHERE method = (select id from "delivery-methods" where name = 'dhl')
AND territory = 'GB';