Use false to decline antuincrement

This commit is contained in:
Jinzhu 2015-11-22 09:35:18 +08:00
parent ba12202af2
commit ea83dec214
1 changed files with 1 additions and 1 deletions

View File

@ -439,7 +439,7 @@ func (scope *Scope) generateSqlTag(field *StructField) string {
if field.IsPrimaryKey {
autoIncrease = true
}
if v == "NO" {
if v == "FALSE" {
autoIncrease = false
}