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
+15
View File
@@ -0,0 +1,15 @@
-- Add new delivery methods
INSERT INTO "delivery-methods" (id, name) VALUES (18, 'fedexExpressEU');
INSERT INTO "delivery-methods" (id, name) VALUES (19, 'fedexStandardEU');
-- Replace DHL Express in all EU countries with own PW markets with Fedex Express
UPDATE "delivery-methods_prices"
SET method = (select id from "delivery-methods" where name = 'fedexExpressEU')
WHERE method = (select id from "delivery-methods" where name = 'dhlExpress')
AND territory in ('AT','BE','DE','DK','EE','ES','FI','FR','IE','IT','LU','NL','PL','RO','SE');
-- Replace DHL Economy in France with Fedex Standard
UPDATE "delivery-methods_prices"
SET method = (select id from "delivery-methods" where name = 'fedexStandardEU')
WHERE method = (select id from "delivery-methods" where name = 'dhlEconomyEU')
AND territory = 'FR';