Fix table constraint error (#20191)

(cherry picked from commit 9ddda9c2468c696c5a4b09cdf06d456537d65ff0)
This commit is contained in:
Suman Maharana 2025-03-11 23:25:15 +05:30 committed by OpenMetadata Release Bot
parent 6d48d58a10
commit 6ce1bd7f13

View File

@ -712,7 +712,7 @@ class CommonDbSourceService(
table_constraints.extend(
constraint
for constraint in foreign_table_constraints
if constraint not in table_constraints
if constraint and constraint not in table_constraints
)
else:
table_constraints = foreign_table_constraints