Open krishi-saripalli opened 6 months ago
I did have the same issue... I found that because of --> https://github.com/golang-migrate/migrate/blob/master/database/pgx/v5/pgx.go#L30
You need to use pgx5 in your dsn like this :
m, err := migrate.New(
"file:///postgres/migrations",
"pgx5://test_db_user:test_db_password@db:5432/my_test_db")
hope it can help you or someone else
Describe the Bug This is a follow up to issue #563
Despite following the guidlines about how to import drivers from
database
, I seem to be hitting the same problem with an unknown import error:database driver: unknown driver pgx (forgotten import?)
I've also run the neccesary
go get
command with thepgx
taggo install -tags 'pgx' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
Steps to Reproduce Steps to reproduce the behavior:
Expected Behavior I would expect a succesful migration
Loaded Database Drivers pgx
Go Version go 1.21 linux/amd64