refactor(datatypes): remove redundant normalization function
This commit is contained in:
@@ -487,10 +487,6 @@ func extractTypeParts(col *models.Column) (baseType string, length, precision, s
|
|||||||
return typeName, length, precision, scale
|
return typeName, length, precision, scale
|
||||||
}
|
}
|
||||||
|
|
||||||
func normalizeType(value string) string {
|
|
||||||
return strings.ToLower(strings.TrimSpace(value))
|
|
||||||
}
|
|
||||||
|
|
||||||
func describeColumnType(col *models.Column) string {
|
func describeColumnType(col *models.Column) string {
|
||||||
if col == nil {
|
if col == nil {
|
||||||
return ""
|
return ""
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ var knownPGBaseTypes = map[string]struct{}{
|
|||||||
"numeric": {}, "real": {}, "double precision": {}, "money": {},
|
"numeric": {}, "real": {}, "double precision": {}, "money": {},
|
||||||
"varchar": {}, "char": {}, "text": {}, "citext": {},
|
"varchar": {}, "char": {}, "text": {}, "citext": {},
|
||||||
"boolean": {},
|
"boolean": {},
|
||||||
"date": {}, "time": {}, "timetz": {}, "timestamp": {}, "timestamptz": {}, "interval": {},
|
"date": {}, "time": {}, "timetz": {}, "timestamp": {}, "timestamptz": {}, "interval": {},
|
||||||
"uuid": {}, "json": {}, "jsonb": {}, "bytea": {},
|
"uuid": {}, "json": {}, "jsonb": {}, "bytea": {},
|
||||||
"inet": {}, "cidr": {}, "macaddr": {}, "xml": {},
|
"inet": {}, "cidr": {}, "macaddr": {}, "xml": {},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user