Rearrange commands in 000.369 - foreign key constraints

This commit is contained in:
Fredrik Ringqvist
2022-04-28 10:41:20 +02:00
parent d06227d28e
commit 544238abce
+7 -7
View File
@@ -1,5 +1,12 @@
-- Add singapore, austrialia, ireland
-- insert new currencies.
INSERT INTO "i18n-currencies"
(iso3char, symbol, fractional_parts, exchange_rate, locale)
VALUES ('AUD', '$', 0, 0.13, 'en_AU.UTF-8');
INSERT INTO "product-currencies" (iso3char, exchange_rate) VALUES ('AUD', 0.13);
-- Add locales
INSERT INTO locales (value, name, fallback_id) VALUES ('en_IE', 'English (Ireland)', 3);
@@ -145,13 +152,6 @@ INSERT INTO listprices (printproduct_id, market_id, listprice)
FROM listprices
WHERE market_id = (select id from markets where name = 'GLOBAL') ON CONFLICT DO NOTHING;
-- insert new currencies.
INSERT INTO "i18n-currencies"
(iso3char, symbol, fractional_parts, exchange_rate, locale)
VALUES ('AUD', '$', 0, 0.13, 'en_AU.UTF-8');
INSERT INTO "product-currencies" (iso3char, exchange_rate) VALUES ('AUD', 0.13);
-- Review existing delivery methods before deleting:
-- select method, name, territory, currency, price from "delivery-methods_prices" join "delivery-methods" on method=id where territory = 'IE' and currency = 'EUR';