Files
database/migrations/archive/000.373.sql
T
Rikard BartholfandGitHub ddcbd0afb0 Archive old migrations (#426)
* Archive old migrations

* Fix invalid placement of migrations
2024-10-17 11:19:12 +02:00

18 lines
753 B
SQL

-- Update delivery methods for AU and SG
-- Add free delivery methods to Australia and Singapore
INSERT INTO "delivery-methods_prices" (territory, currency, option, option_value, price, method) VALUES
('AU', 'AUD', '', '', 0, (select id from "delivery-methods" where name = 'dhlEconomyWorld')),
('SG', 'USD', '', '', 0, (select id from "delivery-methods" where name = 'dhlEconomyWorld'))
;
-- Update DHL Express price for AU+SG
UPDATE "delivery-methods_prices"
SET price = (SELECT 10 / vat FROM markets WHERE name = 'AU')
WHERE territory = 'AU' AND currency = 'AUD' AND method = 10;
UPDATE "delivery-methods_prices"
SET price = (SELECT 7 / vat FROM markets WHERE name = 'SG')
WHERE territory = 'SG' AND currency = 'USD' AND method = 10;