mirror of
https://github.com/beego/bee.git
synced 2024-11-22 15:10:54 +00:00
Merge branch 'master' into develop
This commit is contained in:
commit
b368f2b16a
@ -129,7 +129,7 @@ func (m postgresqlDriver) generateSQLFromFields(fields string) string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
if i == 0 && strings.ToLower(kv[0]) != "id" {
|
if i == 0 && strings.ToLower(kv[0]) != "id" {
|
||||||
sql += "id interger serial primary key,"
|
sql += "id serial primary key,"
|
||||||
}
|
}
|
||||||
sql += snakeString(kv[0]) + " " + typ + ","
|
sql += snakeString(kv[0]) + " " + typ + ","
|
||||||
if tag != "" {
|
if tag != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user