-- Allow authenticated dashboard users to edit advice text inline.
-- The dashboard PATCHes worker_events.payload (jsonb) to update the
-- "text" field. Existing UPDATE policies cover row-level access; this
-- migration adds the column-level GRANT so PostgREST stops 403'ing on
-- the payload write.
--
-- Single-user assumption holds — any authenticated user can edit any
-- advice. For multi-user, tighten RLS by ownership.
--
-- Apply once after 0001..0010. Idempotent.

grant update (payload) on public.worker_events to authenticated;
