Files
awoooi/scripts/ops/awooop-rls-canary-wave1-2-projects-rollback.sql
Your Name 7d92f0acd7
All checks were successful
Code Review / ai-code-review (push) Successful in 10s
CD Pipeline / tests (push) Successful in 1m8s
CD Pipeline / build-and-deploy (push) Successful in 3m49s
CD Pipeline / post-deploy-checks (push) Successful in 1m25s
chore(rls): stage projects canary path
2026-05-12 21:25:24 +08:00

20 lines
744 B
PL/PgSQL

-- Rollback for AwoooP RLS Canary Wave 1.2.
-- This removes project table policies and disables RLS on awooop_projects.
-- It intentionally keeps awooop_operator_list_projects() so deployed API code
-- that uses the operator list path remains compatible.
BEGIN;
SET LOCAL lock_timeout = '5s';
SET LOCAL statement_timeout = '30s';
DROP POLICY IF EXISTS awooop_projects_select_tenant ON awooop_projects;
DROP POLICY IF EXISTS awooop_projects_insert_tenant ON awooop_projects;
DROP POLICY IF EXISTS awooop_projects_update_tenant ON awooop_projects;
DROP POLICY IF EXISTS awooop_projects_delete_tenant ON awooop_projects;
ALTER TABLE awooop_projects NO FORCE ROW LEVEL SECURITY;
ALTER TABLE awooop_projects DISABLE ROW LEVEL SECURITY;
COMMIT;