From 461dcc4fd820e337157f1305cf34d65cf38d9705 Mon Sep 17 00:00:00 2001 From: fredrikphotowall <35255659+fredrikphotowall@users.noreply.github.com> Date: Mon, 12 Apr 2021 10:34:29 +0200 Subject: [PATCH] P5-7119 Delete Stina Wirsen posters (#205) --- migrations/000.326.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 migrations/000.326.sql diff --git a/migrations/000.326.sql b/migrations/000.326.sql new file mode 100644 index 0000000..d1e21c5 --- /dev/null +++ b/migrations/000.326.sql @@ -0,0 +1,11 @@ +-- P5-6785 Delete Stina Wirsén posters + +-- Delete Stina Wirsén posters +DELETE FROM "product-printproducts_materials" WHERE printid IN ( + select printid from "product-printproducts" posters join "product-products" products using (productid) where groupid = 7 and designerid = (select designerid from designers where path = 'stina-wirsen') +); + +DELETE FROM "product-printproducts" WHERE printid IN ( + select printid from "product-printproducts" posters join "product-products" products using (productid) where groupid = 7 and designerid = (select designerid from designers where path = 'stina-wirsen') +); +