From 8f974a33edaaab22fc1e224297b2bd49ce5b2dae Mon Sep 17 00:00:00 2001 From: EricaWind Date: Fri, 27 Oct 2017 16:41:07 +0300 Subject: [PATCH] P5-1813. Removing of all interior images that are not landscape from all motifs that are repeating pattern. --- migrations/000.050.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 migrations/000.050.sql diff --git a/migrations/000.050.sql b/migrations/000.050.sql new file mode 100644 index 0000000..c797571 --- /dev/null +++ b/migrations/000.050.sql @@ -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) +); \ No newline at end of file