Files
awoooi/scripts/ops/awooop-rls-canary-wave1-3-outbound-message-rollback.sql
Your Name de16c88418
All checks were successful
Code Review / ai-code-review (push) Successful in 11s
chore(rls): 套用 outbound message canary
2026-05-12 21:55:23 +08:00

15 lines
461 B
PL/PgSQL

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