diff --git a/migrations/000.307.sql b/migrations/000.307.sql new file mode 100644 index 0000000..ac1e982 --- /dev/null +++ b/migrations/000.307.sql @@ -0,0 +1,11 @@ +-- P5-6672: blacklist products on BE based on NL + +delete from product_blacklist where market_id = (select id from markets where name = 'BE'); + +INSERT INTO product_blacklist (product_id, group_id, market_id) + SELECT + product_id, + group_id, + (select id from markets where name = 'BE') + FROM product_blacklist + where market_id = (select id from markets where name = 'NL');