Change default ints to int not int32

- THANKS PATRICK
This commit is contained in:
Aaron L 2016-07-31 22:50:33 -07:00
parent a3ea7a3c0c
commit 1cb57741cf

View file

@ -248,7 +248,7 @@ func (p *PostgresDriver) TranslateColumnType(c bdb.Column) bdb.Column {
case "bigint", "bigserial": case "bigint", "bigserial":
c.Type = "null.Int64" c.Type = "null.Int64"
case "integer", "serial": case "integer", "serial":
c.Type = "null.Int32" c.Type = "null.Int"
case "smallint", "smallserial": case "smallint", "smallserial":
c.Type = "null.Int16" c.Type = "null.Int16"
case "decimal", "numeric", "double precision", "money": case "decimal", "numeric", "double precision", "money":
@ -271,7 +271,7 @@ func (p *PostgresDriver) TranslateColumnType(c bdb.Column) bdb.Column {
case "bigint", "bigserial": case "bigint", "bigserial":
c.Type = "int64" c.Type = "int64"
case "integer", "serial": case "integer", "serial":
c.Type = "int32" c.Type = "int"
case "smallint", "smallserial": case "smallint", "smallserial":
c.Type = "int16" c.Type = "int16"
case "decimal", "numeric", "double precision", "money": case "decimal", "numeric", "double precision", "money":