stripe / pg-schema-diff

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

Use the test environment that is intended to be used #140

Closed bplunkett-stripe closed 5 days ago

bplunkett-stripe commented 5 days ago

Description

It seems postgresql-contrib installs postgresql16, which then had precedence in the $PATH. This resulted in the tests running postgresql16 for the non-16 tests. Obviously, this is not the behavior we want. I validated this because in the postgresql 14 logs you can see: starting PostgreSQL 16.3

Motivation

Fix our test environment

Testing

Validating it works as expected: Checked the postgresql14 and postgresql15 to ensure the versions were what we expect