fp/scripts/data-migrations/2024-11-22-relate-mux_asset...

12 lines
144 B
PL/PgSQL

BEGIN;
UPDATE api.vods
SET mux_asset_id = links.mux_asset_id
FROM api.vods_mux_asset_links links
WHERE api.vods.id = links.vod_id;
COMMIT;