Skip to content

Commit

Permalink
Merge pull request #258 from wavemm/allie/fix-query-that-returns-cons…
Browse files Browse the repository at this point in the history
…traint-owned-by-extensions

the CheckConstraint query returned constraints owned by extensions
  • Loading branch information
jmafc authored Jul 10, 2024
2 parents ec68251 + 0f79bff commit 9ac4422
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyrseas/dbobject/constraint.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ def query(dbversion=None):
AND contype = 'c'
AND contypid NOT IN (SELECT objid FROM pg_depend
WHERE deptype = 'e' AND classid = 'pg_type'::regclass)
AND conrelid NOT IN (SELECT objid FROM pg_depend
WHERE deptype = 'e' AND classid = 'pg_class'::regclass)
ORDER BY schema, "table", name"""

@staticmethod
Expand Down

0 comments on commit 9ac4422

Please sign in to comment.