Files
database/migrations/archive/000.469.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
1.1 KiB
SQL

INSERT INTO "i18n-currencies" (iso3char, symbol, fractional_parts, exchange_rate, locale) VALUES
('NZD', '$', 0, 0.16, 'en_NZ.UTF-8'),
('JPY', '¥', 0, 14.45, 'ja_JP.UTF-8');
INSERT INTO "product-currencies" (iso3char, exchange_rate) VALUES ('NZD', 0.16), ('JPY', 14.45);
UPDATE markets SET currency = 'NZD' WHERE name = 'NZ';
UPDATE markets SET currency = 'JPY' WHERE name = 'JP';
INSERT INTO "delivery-methods_prices" (territory, currency, option, option_value, price, method) VALUES
('NZ', 'NZD', '', '', 0, (select id from "delivery-methods" where name = 'samplesDelivery')),
('NZ', 'NZD', '', '', 0, (select id from "delivery-methods" where name = 'fedexStandardWorld')),
('NZ', 'NZD', '', '', 11, (select id from "delivery-methods" where name = 'fedexExpressWorld')),
('JP', 'JPY', '', '', 0, (select id from "delivery-methods" where name = 'samplesDelivery')),
('JP', 'JPY', '', '', 4600, (select id from "delivery-methods" where name = 'fedexStandardWorld')),
('JP', 'JPY', '', '', 5800, (select id from "delivery-methods" where name = 'fedexExpressWorld'));