fix(postgres): map driver errors and keep shared pool after migrations
This commit is contained in:
@@ -62,7 +62,6 @@ func Connect(ctx context.Context, cfg Config) (*pgxpool.Pool, error) {
|
||||
|
||||
func RunMigrations(ctx context.Context, pool *pgxpool.Pool) error {
|
||||
db := stdlib.OpenDBFromPool(pool)
|
||||
defer db.Close()
|
||||
|
||||
goose.SetBaseFS(migrations.FS)
|
||||
if err := goose.SetDialect("postgres"); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user