orm add uint uint32 uint64 auto increment support
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user