1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 19:34:04 +00:00

Remove UUID constraint from RLS policy

This commit is contained in:
lukinovec 2023-05-10 12:48:06 +02:00
parent 99fc1e3f87
commit 253061730e

View file

@ -35,7 +35,7 @@ class CreateRLSPoliciesForTenantTables extends Command
{$parentKey} IN ( {$parentKey} IN (
SELECT id SELECT id
FROM {$parentTable} FROM {$parentTable}
WHERE ({$tenantKey}::UUID = ( WHERE ({$tenantKey} = (
SELECT {$tenantKey} SELECT {$tenantKey}
FROM {$parentTable} FROM {$parentTable}
WHERE id = {$parentKey} WHERE id = {$parentKey}