P5-7027 blacklist products on Canada (#207)

This commit is contained in:
Martin Carlsson
2021-03-25 14:49:07 +01:00
committed by GitHub
parent 2e6fce5b64
commit 598cbc8882
+11
View File
@@ -0,0 +1,11 @@
-- P5-7027: blacklist products on CA based on US
delete from product_blacklist where market_id = (select id from markets where name = 'CA');
INSERT INTO product_blacklist (product_id, group_id, market_id)
SELECT
product_id,
group_id,
(select id from markets where name = 'CA')
FROM product_blacklist
where market_id = (select id from markets where name = 'US');