Closed iamemilio closed 2 years ago
gormdb, err := gorm.Open(postgres.New(postgres.Config{ DSN: connectionString, }), &gorm.Config{}) if err != nil { log.Fatal(err) }
results in:
# gorm.io/driver/postgres ../../../go/pkg/mod/gorm.io/driver/postgres@v1.3.8/migrator.go:617:57: undefined: gorm.Index ../../../go/pkg/mod/gorm.io/driver/postgres@v1.3.8/migrator.go:618:25: undefined: gorm.Index ../../../go/pkg/mod/gorm.io/driver/postgres@v1.3.8/migrator.go:628:25: undefined: migrator.Index
https://github.com/go-gorm/postgres/pull/118 I suppose the PR should fix this issue.
results in: