parent
ae30ef8295
commit
29b84da874
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue