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') +); +