Postgresql Dialet: fix primary tag for int types

There is not `sehrial`type in postgresql
This commit is contained in:
Cihangir 2013-12-01 21:26:19 -08:00
parent 49fa9c7f4a
commit 93fdc2dbc3
1 changed files with 1 additions and 1 deletions

View File

@ -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: