Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -0,0 +1,23 @@
|
||||
-- R-P11a Global Search isolation artifact.
|
||||
-- Companion to prisma/rls/tenant-isolation.sql. These tables are tenant-scoped
|
||||
-- metadata around Meilisearch documents and recent searches. Enable during the
|
||||
-- merge migration once the schema lands.
|
||||
--
|
||||
-- Verification:
|
||||
-- psql "$DIRECT_URL" -f prisma/rls/search-isolation.sql
|
||||
|
||||
ALTER TABLE "SearchIndexEntry" ENABLE ROW LEVEL SECURITY;
|
||||
ALTER TABLE "SearchIndexEntry" FORCE ROW LEVEL SECURITY;
|
||||
|
||||
DROP POLICY IF EXISTS "tenant_isolation_search_index_entry" ON "SearchIndexEntry";
|
||||
CREATE POLICY "tenant_isolation_search_index_entry" ON "SearchIndexEntry"
|
||||
USING ("tenantId" = current_setting('app.current_tenant_id', true))
|
||||
WITH CHECK ("tenantId" = current_setting('app.current_tenant_id', true));
|
||||
|
||||
ALTER TABLE "RecentSearch" ENABLE ROW LEVEL SECURITY;
|
||||
ALTER TABLE "RecentSearch" FORCE ROW LEVEL SECURITY;
|
||||
|
||||
DROP POLICY IF EXISTS "tenant_isolation_recent_search" ON "RecentSearch";
|
||||
CREATE POLICY "tenant_isolation_recent_search" ON "RecentSearch"
|
||||
USING ("tenantId" = current_setting('app.current_tenant_id', true))
|
||||
WITH CHECK ("tenantId" = current_setting('app.current_tenant_id', true));
|
||||
Reference in new issue
Block a user