Skip to content

Commit

Permalink
fix: update incorrect default name when parse dest model field.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengyb committed Nov 2, 2024
1 parent deceebf commit 3fd61ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (schema *Schema) ParseField(fieldStruct reflect.StructField) *Field {
Readable: true,
PrimaryKey: utils.CheckTruth(tagSetting["PRIMARYKEY"], tagSetting["PRIMARY_KEY"]),
AutoIncrement: utils.CheckTruth(tagSetting["AUTOINCREMENT"]),
HasDefaultValue: utils.CheckTruth(tagSetting["AUTOINCREMENT"]),
HasDefaultValue: utils.CheckTruth(tagSetting["DEFAULT"]),
NotNull: utils.CheckTruth(tagSetting["NOT NULL"], tagSetting["NOTNULL"]),
Unique: utils.CheckTruth(tagSetting["UNIQUE"]),
Comment: tagSetting["COMMENT"],
Expand Down

0 comments on commit 3fd61ee

Please sign in to comment.