orm add uint uint32 uint64 auto increment support

This commit is contained in:
slene
2013-08-22 18:35:26 +08:00
parent 7d7c9825e9
commit 94f7ba8bdf
7 changed files with 13 additions and 12 deletions

View File

@@ -102,9 +102,10 @@ func getDbCreateSql(al *alias) (sqls []string) {
}
if fi.auto {
if al.Driver == DR_Postgres {
switch al.Driver {
case DR_Sqlite, DR_Postgres:
column += T["auto"]
} else {
default:
column += col + " " + T["auto"]
}
} else if fi.pk {