From 29b84da8741702d4f99fb4ca3174cbf884711773 Mon Sep 17 00:00:00 2001 From: RPJosh Date: Fri, 26 Apr 2024 21:01:15 +0200 Subject: [PATCH] [Mariadb] Detect TEXT data types --- mariadb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mariadb.go b/mariadb.go index 3d29b24..862c8b8 100644 --- a/mariadb.go +++ b/mariadb.go @@ -169,7 +169,7 @@ func (s *Mariadb) GetTables(schema string) ([]*Table, error) { func (s *Mariadb) GetDataType(internalType string) DataType { switch strings.ToLower(internalType) { - case "varchar": + case "varchar", "text", "tinytext", "mediumtext", "longtext": return StringType case "int", "tinyint", "smallint", "bigint": return IntType