refactor(datatypes): remove redundant normalization function

This commit is contained in:
2026-05-19 19:12:54 +02:00
parent 9190df81dd
commit 80fb49bc5e
2 changed files with 1 additions and 5 deletions
-4
View File
@@ -487,10 +487,6 @@ func extractTypeParts(col *models.Column) (baseType string, length, precision, s
return typeName, length, precision, scale
}
func normalizeType(value string) string {
return strings.ToLower(strings.TrimSpace(value))
}
func describeColumnType(col *models.Column) string {
if col == nil {
return ""
+1 -1
View File
@@ -171,7 +171,7 @@ var knownPGBaseTypes = map[string]struct{}{
"numeric": {}, "real": {}, "double precision": {}, "money": {},
"varchar": {}, "char": {}, "text": {}, "citext": {},
"boolean": {},
"date": {}, "time": {}, "timetz": {}, "timestamp": {}, "timestamptz": {}, "interval": {},
"date": {}, "time": {}, "timetz": {}, "timestamp": {}, "timestamptz": {}, "interval": {},
"uuid": {}, "json": {}, "jsonb": {}, "bytea": {},
"inet": {}, "cidr": {}, "macaddr": {}, "xml": {},
}