go-pg / migrations

SQL database migrations for Golang go-pg and PostgreSQL
https://godoc.org/github.com/go-pg/migrations
BSD 2-Clause "Simplified" License
309 stars 59 forks source link

Update compatibility with CockroachDB #83

Closed ognev-dev closed 4 years ago

ognev-dev commented 4 years ago

On newest CockroachDB (somewhere from 19.1.5) error message changed to [42601] ERROR: at or near "lock": syntax error (was [42601] ERROR: syntax error at or near "lock"). Because of this change condition for CockroachDB error is now false and migrations do not work with latest CockroachDB.

I changed error check for at or near \"lock\" as it match for both old and new error messages.

vmihailenco commented 4 years ago

Thanks