Archive old migrations (#426)

* Archive old migrations

* Fix invalid placement of migrations
This commit is contained in:
Rikard Bartholf
2024-10-17 11:19:12 +02:00
committed by GitHub
parent 763262c108
commit ddcbd0afb0
500 changed files with 0 additions and 0 deletions
+16
View File
@@ -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);