eulerto / pgquarrel

pgquarrel compares PostgreSQL database schemas (DDL)
BSD 3-Clause "New" or "Revised" License
389 stars 42 forks source link

implement ALTER COLUMN ... DROP/ADD CONSTRAINT for checks #103

Closed mitchellh closed 8 months ago

mitchellh commented 2 years ago

This adds the ADD/DROP constraint logic for checks. I found you were already querying checks. I'm not sure if this exhaustively works for all check scenarios but for simplistic cases (represented in tests) it works well.