forked from mirror/gorm
Postgresql Dialet: fix primary tag for int types
There is not `sehrial`type in postgresql
This commit is contained in:
parent
49fa9c7f4a
commit
93fdc2dbc3
|
@ -45,7 +45,7 @@ func (d *postgres) SqlTag(column interface{}, size int) string {
|
|||
func (s *postgres) PrimaryKeyTag(column interface{}, size int) string {
|
||||
switch column.(type) {
|
||||
case int, int8, int16, int32, uint, uint8, uint16, uint32:
|
||||
return "sehrial"
|
||||
return "serial"
|
||||
case int64, uint64:
|
||||
return "bigserial"
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue