Skip to content

Commit

Permalink
driver: use simplesurance/pq instead of lib/pq
Browse files Browse the repository at this point in the history
The migrate library is importing a specific postgres driver, lib/pq.
It's only possible to register 1 driver for an implementation in the
database/sql stdlib.

This causes the problem that users of the library can not choose their
own implementation of the postgres driver when they are using migrate.

To be able to use simplesurance/pq instead of lib/pq in our application,
the import in the migrate lib must be changed.
  • Loading branch information
fho committed Jun 27, 2019
1 parent 076da89 commit ac3fb2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/simplesurance/migrate/file"
"github.com/simplesurance/migrate/migrate/direction"
"github.com/jmoiron/sqlx"
"github.com/lib/pq"
"github.com/simplesurance/pq"
)

type Driver struct {
Expand Down

0 comments on commit ac3fb2a

Please sign in to comment.