rake-db 2.37.11 → 2.37.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5165,6 +5165,7 @@ const defaultPrivilegesSql = `SELECT COALESCE(json_agg(t.*), '[]') FROM (
5165
5165
  array_agg(ae.is_grantable) "isGrantables"
5166
5166
  FROM pg_default_acl d
5167
5167
  JOIN LATERAL aclexplode(d.defaclacl) ae ON true
5168
+ WHERE d.defaclnamespace <> 0 OR ae.grantee <> d.defaclrole
5168
5169
  GROUP BY "grantor", "grantee", "schema", "object"
5169
5170
  ) t`;
5170
5171
  const grantsSql = `SELECT COALESCE(json_agg(t.* ORDER BY t."target", t."schema", t."name", t."grantee", t."grantor"), '[]') FROM (