[Mariadb] Detect TEXT data types

main v0.1.2
Jonas Letzbor 2024-04-26 21:01:15 +02:00
parent ae30ef8295
commit 29b84da874
Signed by: RPJosh
GPG Key ID: 43ACB900522EA740
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ func (s *Mariadb) GetTables(schema string) ([]*Table, error) {
func (s *Mariadb) GetDataType(internalType string) DataType { func (s *Mariadb) GetDataType(internalType string) DataType {
switch strings.ToLower(internalType) { switch strings.ToLower(internalType) {
case "varchar": case "varchar", "text", "tinytext", "mediumtext", "longtext":
return StringType return StringType
case "int", "tinyint", "smallint", "bigint": case "int", "tinyint", "smallint", "bigint":
return IntType return IntType