P5-1813. Removing of all interior images that are not landscape from all motifs that are repeating pattern.

This commit is contained in:
EricaWind
2017-10-27 16:41:07 +03:00
parent 3861147d44
commit 8f974a33ed
+10
View File
@@ -0,0 +1,10 @@
-- Removing of all interior images that are not landscape from all motifs that are repeating pattern
DELETE FROM "interiors"
WHERE id IN
(
SELECT i.id
FROM "interiors" i
INNER JOIN "product-printproducts" pp
ON i.print_id = pp.printid
WHERE groupid = 3 AND room_id NOT IN (4, 8, 14)
);