Skip to content

Commit

Permalink
Update src/dialect/postgres/postgres-introspector.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
  • Loading branch information
koskimas and igalklebanov committed May 16, 2023
1 parent 22c0359 commit 080ac3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dialect/postgres/postgres-introspector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ export class PostgresIntrospector implements DatabaseIntrospector {
.as('auto_incrementing'),
])
// r == normal table
.where(qb => qb.where('c.relkind', '=', 'r').orWhere('c.relkind', '=', 'v'))
.where(({ cmpr, or }) => or([
cmpr('c.relkind', '=', 'r'),
cmpr('c.relkind', '=', 'v'),
])
.where('ns.nspname', '!~', '^pg_')
.where('ns.nspname', '!=', 'information_schema')
// No system columns
Expand Down

0 comments on commit 080ac3f

Please sign in to comment.