From f677ed6396fc6d3d646f97b4512e2e7c8c2538c3 Mon Sep 17 00:00:00 2001 From: Fredrik Ringqvist <35255659+fredrikphotowall@users.noreply.github.com> Date: Fri, 10 Jun 2022 09:01:17 +0200 Subject: [PATCH] Update price adjustments (#280) --- migrations/000.379.sql | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 migrations/000.379.sql diff --git a/migrations/000.379.sql b/migrations/000.379.sql new file mode 100644 index 0000000..9ee75da --- /dev/null +++ b/migrations/000.379.sql @@ -0,0 +1,16 @@ +-- Update price adjustments + +delete from price_adjustments where market_id = (select id from markets where name = 'IT'); + +insert into price_adjustments (market_id, material_id, product_type, value) values + ((select id from markets where name = 'NL'), (select materialid from "product-materials" where material = 'standard-wallpaper'), 'inquiry', 1.0606), + ((select id from markets where name = 'SE'), (select materialid from "product-materials" where material = 'standard-wallpaper'), 'inquiry', 1.0508), + ((select id from markets where name = 'US'), (select materialid from "product-materials" where material = 'standard-wallpaper'), 'inquiry', 1.0714), + ((select id from markets where name = 'FR'), (select materialid from "product-materials" where material = 'standard-wallpaper'), 'inquiry', 1.0625), + ((select id from markets where name = 'SE'), (select materialid from "product-materials" where material = 'standard-wallpaper'), 'product', 1.0508), + ((select id from markets where name = 'US'), (select materialid from "product-materials" where material = 'standard-wallpaper'), 'product', 1.0714), + ((select id from markets where name = 'FR'), (select materialid from "product-materials" where material = 'standard-wallpaper'), 'product', 1.0625), + ((select id from markets where name = 'US'), (select materialid from "product-materials" where material = 'premium-wallpaper'), 'inquiry', 1.0645), + ((select id from markets where name = 'FR'), (select materialid from "product-materials" where material = 'premium-wallpaper'), 'inquiry', 1.0571), + ((select id from markets where name = 'US'), (select materialid from "product-materials" where material = 'premium-wallpaper'), 'product', 1.0645), + ((select id from markets where name = 'FR'), (select materialid from "product-materials" where material = 'premium-wallpaper'), 'product', 1.0571);