coryd.dev/queries/functions/update_album_key.psql

5 lines
95 B
Text

BEGIN
UPDATE listens
SET album_key = new_album_key
WHERE album_key = old_album_key;
END;