Fix incorrect generation of postgres table id type

This commit is contained in:
Filip 2016-09-17 21:54:00 +02:00
parent 6f5df78d45
commit 465115c28e
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ func (m postgresqlDriver) generateSQLFromFields(fields string) string {
return ""
}
if i == 0 && strings.ToLower(kv[0]) != "id" {
sql += "id interger serial primary key,"
sql += "id serial primary key,"
}
sql += snakeString(kv[0]) + " " + typ + ","
if tag != "" {