stripe / pg-schema-diff

Go library for diffing Postgres schemas and generating SQL migrations
MIT License
316 stars 23 forks source link

Separate Column Diffs from Table Diffs #36

Closed bplunkett-stripe closed 2 months ago

bplunkett-stripe commented 1 year ago

All column differs are grouped into table add/alter statement blocks. This makes it difficult to build dependencies with individual columns. If we did this, we would also need to split out check constraints

We might want to reconsider some of the "diffing" paradigm to make this easier, e.g., some sort of support for nested SQLVertexGenerators.

bplunkett-stripe commented 2 months ago

Closing in favor of #131