Skip to content

Commit

Permalink
fix postgre fk
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Oct 20, 2024
1 parent 5fa3f61 commit 2e4d5ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/connections/postgre/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ FROM
LEFT JOIN information_schema.constraint_column_usage AS ccu
ON (
ccu.table_schema = kcu.table_schema AND
ccu.table_name = kcu.table_name AND
ccu.constraint_name = kcu.constraint_name AND
tc.constraint_name = 'FOREIGN KEY'
tc.constraint_type = 'FOREIGN KEY'
)
WHERE
kcu.constraint_schema NOT IN ('information_schema', 'pg_catalog', 'pg_toast')`,
Expand Down

0 comments on commit 2e4d5ea

Please sign in to comment.