P5-3523 add poster blacklisting to all products that have (wallpaper, photo-wallpaper, canvas) blacklisting

This commit is contained in:
Martin
2019-01-28 12:58:29 +01:00
parent 6c03570395
commit aafc46cb95
+5
View File
@@ -0,0 +1,5 @@
-- 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;