Files
database/migrations/000.532.sql
T

8 lines
448 B
SQL

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