mirror of
https://github.com/ent/ent.git
synced 2026-05-04 00:20:58 +03:00
dialect/sql/schema: support mysql mediumtext type (#1972)
Signed-off-by: storyicon <yuanchao@bilibili.com>
This commit is contained in:
@@ -461,6 +461,9 @@ func (d *MySQL) scanColumn(c *Column, rows *sql.Rows) error {
|
||||
case "text":
|
||||
c.Size = math.MaxUint16
|
||||
c.Type = field.TypeString
|
||||
case "mediumtext":
|
||||
c.Size = 1<<24 - 1
|
||||
c.Type = field.TypeString
|
||||
case "longtext":
|
||||
c.Size = math.MaxInt32
|
||||
c.Type = field.TypeString
|
||||
|
||||
Reference in New Issue
Block a user