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

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

6 lines
331 B
SQL

-- P5-3523 add poster blacklisting to all products that have (wallpaper, photo-wallpaper, canvas) blacklisting
INSERT INTO product_blacklist (product_id, language_id, territory_id, group_id)
SELECT product_id, language_id, territory_id, 7 FROM product_blacklist
GROUP BY product_id, language_id, territory_id HAVING count(1) = 3;