golang-migrate / migrate

Database migrations. CLI and Golang library.
Other
14.48k stars 1.34k forks source link

use lowercase current_schema() method to support PgAdapter for GCP Spanner #1086

Open blaberg opened 1 month ago

blaberg commented 1 month ago

Hi!

We I have been experimenting with using the Postgres adapter for GCP Spanner that would let you use Postgres tools to interact with Spanner. However, it only supports the lowercase version of CURRENT_SCHEMA(), which is used in the migration. This PR simply changes the function to the lowercase one. This will not effect any Postgres functionality, but will let people use the Postgres Adapter for Spanner.

coveralls commented 1 month ago

Coverage Status

coverage: 56.33% (-0.005%) from 56.335% when pulling d6df9bfed6a15ddd327781151c6c0b82d5d24071 on blaberg:lowercase-current-schema into 04b36ebaac41964a54faa3e4b35254963dd88a3d on golang-migrate:master.