diff --git a/src/Commands/CreateRLSPoliciesForTenantTables.php b/src/Commands/CreateRLSPoliciesForTenantTables.php index 04a1ec92..5a1a2d56 100644 --- a/src/Commands/CreateRLSPoliciesForTenantTables.php +++ b/src/Commands/CreateRLSPoliciesForTenantTables.php @@ -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}