diff --git a/migrations/000.469.sql b/migrations/000.469.sql new file mode 100644 index 0000000..5135282 --- /dev/null +++ b/migrations/000.469.sql @@ -0,0 +1,17 @@ +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')); +