Files
database/migrations/archive/000.326.sql
T
Rikard BartholfandGitHub ddcbd0afb0 Archive old migrations (#426)
* Archive old migrations

* Fix invalid placement of migrations
2024-10-17 11:19:12 +02:00

12 lines
605 B
SQL

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