From 554d0d12c0bd2fa397007e2a3eb8efc1b540a221 Mon Sep 17 00:00:00 2001 From: Fredrik Ringqvist <35255659+fredrikphotowall@users.noreply.github.com> Date: Thu, 30 Jan 2025 12:51:17 +0100 Subject: [PATCH] Move and tag products to new designer PW (#456) --- migrations/000.532.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 migrations/000.532.sql diff --git a/migrations/000.532.sql b/migrations/000.532.sql new file mode 100644 index 0000000..d521a94 --- /dev/null +++ b/migrations/000.532.sql @@ -0,0 +1,7 @@ +-- 1) Set the current designer name (PWB, PWP och PWH) to ref3 fields. (Designer ID 251, 249 & 265) +UPDATE "product-products" SET ref3='PWB' WHERE designerid = 251; +UPDATE "product-products" SET ref3='PWP' WHERE designerid = 249; +UPDATE "product-products" SET ref3='PWH' WHERE designerid = 265; + +-- 2) Change the designer of those products to designer id 431 (PW) +UPDATE "product-products" SET designerid = 431 WHERE designerid in (251, 249, 265);