stripe / pg-schema-diff

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

Update sqlc to v1.18.0 #28

Closed bplunkett-stripe closed 1 year ago

bplunkett-stripe commented 1 year ago

Upgrade sqlc to v1.18.0.

All of the name columns (really an alias for varchar) sqlc generated code used the go type interface{}. Manually casting it to ::TEXT fixed the code gen. I opted to use ::TEXT rather than ::VARCHAR because it's slightly more flexible 🤷‍♂️