14 lines
693 B
SQL
14 lines
693 B
SQL
-- ============================================================
|
|
-- Grant EXECUTE on IT Job RPCs to the authenticated role and
|
|
-- enable REPLICA IDENTITY FULL on tasks for realtime updates.
|
|
-- ============================================================
|
|
|
|
GRANT EXECUTE ON FUNCTION public.mark_it_job_printed(uuid, uuid) TO authenticated;
|
|
GRANT EXECUTE ON FUNCTION public.unmark_it_job_printed(uuid) TO authenticated;
|
|
|
|
-- Enable REPLICA IDENTITY FULL on the tasks table so that
|
|
-- Supabase Realtime UPDATE events carry the full new row data,
|
|
-- including the newly added it_job_printed / it_job_printed_at /
|
|
-- it_job_received_by_id columns.
|
|
ALTER TABLE public.tasks REPLICA IDENTITY FULL;
|