fix stack test database initialization

This commit is contained in:
willchen96 2026-07-23 19:08:08 +08:00
parent 6aed350a3c
commit 9399fce86d
3 changed files with 49 additions and 4 deletions

View file

@ -885,3 +885,10 @@ revoke all on public.user_mcp_connector_tools from anon, authenticated;
revoke all on public.user_mcp_tool_audit_logs from anon, authenticated;
revoke all on public.courtlistener_citation_index from anon, authenticated;
revoke all on public.courtlistener_opinion_cluster_index from anon, authenticated;
-- Tables created by this file are owned by the database bootstrap role. The
-- backend connects as service_role, so grant it the privileges that the direct
-- browser roles above intentionally do not have. RLS is still enabled as
-- defense in depth; service_role bypasses it for the backend data path.
grant all privileges on all tables in schema public to service_role;
grant all privileges on all sequences in schema public to service_role;