From 0290cd8a6030c8e2defbf5390537d93ccd2e6108 Mon Sep 17 00:00:00 2001 From: Corey Butler <770982+coreybutler@users.noreply.github.com> Date: Tue, 28 Nov 2023 15:16:16 -0600 Subject: [PATCH] Cleaup relationship SQL --- extractor/postgresql/sql/relationships.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extractor/postgresql/sql/relationships.sql b/extractor/postgresql/sql/relationships.sql index f655cf0..c87faa4 100644 --- a/extractor/postgresql/sql/relationships.sql +++ b/extractor/postgresql/sql/relationships.sql @@ -55,6 +55,8 @@ FROM information_schema.columns col ON pc.oid = pd.objoid WHERE [SCHEMA_FILTER] AND kcu.constraint_name IS NOT NULL + AND rel.column_name IS NOT NULL + AND col.column_name IS NOT NULL ORDER BY col.table_schema, col.table_name,