Skip to content

Commit

Permalink
Use gofrs/uuid/v5
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenafamo committed Apr 4, 2023
1 parent c344fc2 commit 39fdbd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gen/bobgen-atlas/driver/atlas.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ func (d *driver) translateColumnType(c drivers.Column, tableKey string, typ sche

case *schema.UUIDType:
c.Type = "uuid.UUID"
c.Imports = importers.List{`"github.com/gofrs/uuid"`}
c.Imports = importers.List{`"github.com/gofrs/uuid/v5"`}
if d.config.UUIDPkg == "google" {
c.Imports = importers.List{`"github.com/google/uuid"`}
}
Expand Down
2 changes: 1 addition & 1 deletion gen/bobgen-psql/driver/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func (d *driver) typMap() map[string]importers.List {
case "google":
uuidPkg = `"github.com/google/uuid"`
default:
uuidPkg = `"github.com/gofrs/uuid"`
uuidPkg = `"github.com/gofrs/uuid/v5"`
}

return map[string]importers.List{
Expand Down

0 comments on commit 39fdbd4

Please sign in to comment.