mirror of https://github.com/go-gorm/gorm.git
Use false to decline antuincrement
This commit is contained in:
parent
ba12202af2
commit
ea83dec214
|
@ -439,7 +439,7 @@ func (scope *Scope) generateSqlTag(field *StructField) string {
|
||||||
if field.IsPrimaryKey {
|
if field.IsPrimaryKey {
|
||||||
autoIncrease = true
|
autoIncrease = true
|
||||||
}
|
}
|
||||||
if v == "NO" {
|
if v == "FALSE" {
|
||||||
autoIncrease = false
|
autoIncrease = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue