Skip to content

Commit

Permalink
Update atlas driver to use int32 for integer types
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenafamo committed Jan 18, 2024
1 parent 359dca0 commit 5ae95c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gen/bobgen-atlas/driver/atlas.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func (d *driver) translateColumnType(c drivers.Column, tableKey string, typ sche
case "mediumint":
c.Type = "int32"
case "int", "integer":
c.Type = "int"
c.Type = "int32"
case "bigint":
c.Type = "int64"
default:
Expand All @@ -308,7 +308,7 @@ func (d *driver) translateColumnType(c drivers.Column, tableKey string, typ sche
case "smallserial", "serial2":
c.Type = "int16"
case "serial", "serial4":
c.Type = "int"
c.Type = "int32"
case "bigserial", "serial8":
c.Type = "int64"
default:
Expand Down

0 comments on commit 5ae95c1

Please sign in to comment.