fix(db): one DROP+CREATE per policy (drop the duplicated targets block) (coreci-chat#13)
ci / test-pglite (PGlite, default) (push) Failing after 1m50s
ci / test-postgres (Postgres 16, G-022 RLS) (push) Failing after 1m33s
ci / test-pglite (PGlite, default) (pull_request) Failing after 1m51s
ci / test-postgres (Postgres 16, G-022 RLS) (pull_request) Failing after 1m31s

This commit is contained in:
2026-10-27 06:58:49 +00:00
parent 1c75282736
commit db158255c0
@@ -44,7 +44,6 @@ CREATE POLICY tenant_isolation_invitations ON invitations
USING (tenant_id = nullif(current_setting('app.tenant_id', true), '')::uuid)
WITH CHECK (tenant_id = nullif(current_setting('app.tenant_id', true), '')::uuid);
DROP POLICY IF EXISTS tenant_isolation_targets ON targets;
DROP POLICY IF EXISTS tenant_isolation_targets ON targets;
CREATE POLICY tenant_isolation_targets ON targets
USING (tenant_id = nullif(current_setting('app.tenant_id', true), '')::uuid)