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
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user