From 979e3f02d3c26befa11253be1bae53ff144ec123 Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 11 Nov 2019 11:38:43 +0100 Subject: [PATCH] P5-4423 populate framed-prints --- migrations/000.137.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 migrations/000.137.sql diff --git a/migrations/000.137.sql b/migrations/000.137.sql new file mode 100644 index 0000000..4f942c8 --- /dev/null +++ b/migrations/000.137.sql @@ -0,0 +1,11 @@ +-- P5-4423: populate framed prints + +DELETE FROM "product-printproducts_materials" WHERE materialid = 6; + +DELETE FROM "product-printproducts" WHERE groupid = 8; + +INSERT INTO "product-printproducts" (productid, groupid, collectionid, typeid) + SELECT productid, 8, collectionid, typeid FROM "product-printproducts" WHERE groupid = 7; + +INSERT INTO "product-printproducts_materials" (printid, materialid) + SELECT printid, 6 FROM "product-printproducts" WHERE groupid = 8;