perseas / Pyrseas

Provides utilities for Postgres database schema versioning.
https://perseas.github.io/
BSD 3-Clause "New" or "Revised" License
395 stars 67 forks source link

the CheckConstraint query returned constraints owned by extensions #258

Closed allierowan closed 1 month ago

allierowan commented 1 month ago

The fact that CheckConstraints created by extensions were not filtered out was causing an error when calling db.to_map() for a db with the postgis extension (since the db table referenced by the check constraint is not in the list of tables as it was correctly filtered out).

I see similar issues mentioned here: https://github.com/perseas/Pyrseas/issues/236