diff --git a/migrations/000.165.sql b/migrations/000.165.sql new file mode 100644 index 0000000..3d0d66b --- /dev/null +++ b/migrations/000.165.sql @@ -0,0 +1,7 @@ +-- P5-5006: redirect DK framed-prints url + +INSERT INTO redirects (market_id, source_uri, target_uri) + SELECT 4, products.path || '-' || 'indrammet billede', products.path || '-' || 'indrammet-billede' + FROM "product-printproducts" printproducts + JOIN "product-products" products ON products.productid = printproducts.productid + WHERE printproducts.groupid = 8