File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 80
80
join pg_namespace nta on cta.relnamespace = nta.oid
81
81
) on ta.attrelid = c.confrelid and ta.attnum = any (c.confkey)
82
82
where
83
- ${ props . schemaFilter ? `nsa.nspname ${ props . schemaFilter } AND` : '' }
84
- ${ props . schemaFilter ? `nta.nspname ${ props . schemaFilter } AND` : '' }
85
- ${ props . tableIdentifierFilter ? `nsa.nspname || '.' || csa.relname ${ props . tableIdentifierFilter } AND` : '' }
86
- ${ props . tableIdentifierFilter ? `nta.nspname || '.' || cta.relname ${ props . tableIdentifierFilter } AND` : '' }
83
+ ${ props . schemaFilter ? `nsa.nspname ${ props . schemaFilter } OR nta.nspname ${ props . schemaFilter } AND` : '' }
84
+ ${ props . tableIdentifierFilter ? `(nsa.nspname || '.' || csa.relname) ${ props . tableIdentifierFilter } OR (nta.nspname || '.' || cta.relname) ${ props . tableIdentifierFilter } AND` : '' }
87
85
c.contype = 'f'
88
86
) as relationships
89
87
on (relationships.source_schema = nc.nspname and relationships.source_table_name = c.relname)
You can’t perform that action at this time.
0 commit comments