fp/scripts/data-migrations/2024-11-22-rename-vtuber_nu...

11 lines
175 B
PL/PgSQL

BEGIN;
UPDATE api.streams
SET vtuber_id = vtuber_num
WHERE vtuber_num IS NOT NULL;
COMMIT;
-- @TODO api.streams.vtuber_num is deprecated in favor of api.streams.vtuber_Id