Archive old migrations (#426)

* Archive old migrations

* Fix invalid placement of migrations
This commit is contained in:
Rikard Bartholf
2024-10-17 11:19:12 +02:00
committed by GitHub
parent 763262c108
commit ddcbd0afb0
500 changed files with 0 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
-- 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;