Files
awoooi/scripts/ops/awooop-rls-canary-wave1-1-tool-registry-rollback.sql
Your Name b7af597459
All checks were successful
Code Review / ai-code-review (push) Successful in 10s
chore(rls): 套用 tool registry canary wave1.1
2026-05-12 21:15:14 +08:00

15 lines
465 B
PL/PgSQL

-- Rollback for AwoooP RLS Canary Wave 1.1.
-- This only removes the wave1.1 policy and disables RLS on the tool registry.
-- It intentionally does not touch data.
BEGIN;
SET LOCAL lock_timeout = '5s';
SET LOCAL statement_timeout = '30s';
DROP POLICY IF EXISTS awooop_mcp_tool_registry_tenant ON awooop_mcp_tool_registry;
ALTER TABLE awooop_mcp_tool_registry NO FORCE ROW LEVEL SECURITY;
ALTER TABLE awooop_mcp_tool_registry DISABLE ROW LEVEL SECURITY;
COMMIT;