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);