fp/services/migrations-schema/migrations/00031_recreate-update_strea...

6 lines
235 B
SQL

-- when a stream is updated, we add a job in graphile to update_discord_message
CREATE TRIGGER stream_update
AFTER UPDATE ON api.streams
FOR EACH ROW
EXECUTE PROCEDURE public.tg__update_discord_message('update_discord_message');