Upgrade xorm to v1.1.0 (#15869)

This commit is contained in:
Lunny Xiao 2021-05-15 03:17:06 +08:00 committed by GitHub
parent e2f39c2b64
commit f6be429781
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
55 changed files with 1309 additions and 438 deletions

View file

@ -284,7 +284,7 @@ func (db *mssql) SQLType(c *schemas.Column) string {
case schemas.TimeStampz:
res = "DATETIMEOFFSET"
c.Length = 7
case schemas.MediumInt:
case schemas.MediumInt, schemas.UnsignedInt:
res = schemas.Int
case schemas.Text, schemas.MediumText, schemas.TinyText, schemas.LongText, schemas.Json:
res = db.defaultVarchar + "(MAX)"
@ -296,7 +296,7 @@ func (db *mssql) SQLType(c *schemas.Column) string {
case schemas.TinyInt:
res = schemas.TinyInt
c.Length = 0
case schemas.BigInt:
case schemas.BigInt, schemas.UnsignedBigInt:
res = schemas.BigInt
c.Length = 0
case schemas.NVarchar: