Using varchar(max) instead of text in mssql. (#499)

This commit is contained in:
dlob 2016-12-01 07:49:04 +01:00 committed by Lunny Xiao
parent 311abf25ab
commit 9abc087b5d
1 changed files with 2 additions and 2 deletions

View File

@ -242,8 +242,8 @@ func (db *mssql) SqlType(c *core.Column) string {
c.Length = 7
case core.MediumInt:
res = core.Int
case core.MediumText, core.TinyText, core.LongText, core.Json:
res = core.Text
case core.Text, core.MediumText, core.TinyText, core.LongText, core.Json:
res = core.Varchar + "(MAX)"
case core.Double:
res = core.Real
case core.Uuid: