feat: support parsing mysql data types bit(1) and decimal

This commit is contained in:
zhuyasen
2025-01-19 21:55:27 +08:00
parent 2e313280ff
commit 44493211a5
6 changed files with 197 additions and 99 deletions

View File

@@ -68,27 +68,6 @@ func (fields SqliteFields) getPrimaryField() *SqliteField {
return f
}
}
/*
// if no primary key, find the first xxx_id field
if f == nil {
for _, field := range fields {
if strings.HasSuffix(field.Name, "_id") {
f = field
f.Pk = 1
return f
}
}
}
// if no xxx_id field, find the first field
if f == nil {
for _, field := range fields {
f = field
f.Pk = 1
return f
}
}
*/
return f
}