dialect/sql/schema: add mysql text for column scan (#1219)

This commit is contained in:
Ariel Mashraki
2021-01-31 22:25:38 +02:00
committed by GitHub
parent 3930d3c835
commit 95d780e55e

View File

@@ -421,6 +421,9 @@ func (d *MySQL) scanColumn(c *Column, rows *sql.Rows) error {
case "varchar":
c.Type = field.TypeString
c.Size = size
case "text":
c.Size = math.MaxUint16
c.Type = field.TypeString
case "longtext":
c.Size = math.MaxInt32
c.Type = field.TypeString