From be8fa4cd162482b156638b54090dd59d1230ba60 Mon Sep 17 00:00:00 2001 From: Martin Carlsson Date: Mon, 30 Mar 2020 16:27:42 +0200 Subject: [PATCH] P5-5006 redirect dk framed print urls --- migrations/000.165.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 migrations/000.165.sql 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