stripe / pg-schema-diff

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

Add exclude schemas #100

Closed bplunkett-stripe closed 5 months ago

bplunkett-stripe commented 5 months ago

Description

When using temp db factories (which have metadata tables), we need to tell the schema fetcher to ignore those tables.

This also technically switches acceptance tests to fetch non-public schemas; however, none of our tests actually have non-public schemas.

The final step for supporting non-public schemas at this point is validating everything is actually working through the acceptance tests, updating the documentation, and removing the gate.

Motivation

https://github.com/stripe/pg-schema-diff/issues/94

Testing

Acceptance tests