Modified by www.SourceFiles.app
This commit is contained in:
@@ -32,9 +32,9 @@ GRANT SELECT ON public.audit_log TO authenticated;
|
||||
GRANT ALL ON public.audit_log TO service_role;
|
||||
ALTER TABLE public.audit_log ENABLE ROW LEVEL SECURITY;
|
||||
|
||||
CREATE INDEX audit_table_record_idx ON public.audit_log (table_name, record_id, occurred_at DESC);
|
||||
CREATE INDEX audit_actor_idx ON public.audit_log (actor_id, occurred_at DESC);
|
||||
CREATE INDEX audit_occurred_idx ON public.audit_log (occurred_at DESC);
|
||||
CREATE INDEX IF NOT EXISTS audit_table_record_idx ON public.audit_log (table_name, record_id, occurred_at DESC);
|
||||
CREATE INDEX IF NOT EXISTS audit_actor_idx ON public.audit_log (actor_id, occurred_at DESC);
|
||||
CREATE INDEX IF NOT EXISTS audit_occurred_idx ON public.audit_log (occurred_at DESC);
|
||||
|
||||
DROP POLICY IF EXISTS "audit read" ON public.audit_log;
|
||||
CREATE POLICY "audit read" ON public.audit_log FOR SELECT TO authenticated
|
||||
|
||||
Reference in New Issue
Block a user