mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 14:34:04 +00:00
Remove UUID constraint from RLS policy
This commit is contained in:
parent
99fc1e3f87
commit
253061730e
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ class CreateRLSPoliciesForTenantTables extends Command
|
|||
{$parentKey} IN (
|
||||
SELECT id
|
||||
FROM {$parentTable}
|
||||
WHERE ({$tenantKey}::UUID = (
|
||||
WHERE ({$tenantKey} = (
|
||||
SELECT {$tenantKey}
|
||||
FROM {$parentTable}
|
||||
WHERE id = {$parentKey}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue