Files
Rikard BartholfandGitHub ddcbd0afb0 Archive old migrations (#426)
* Archive old migrations

* Fix invalid placement of migrations
2024-10-17 11:19:12 +02:00

12 lines
400 B
SQL

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