mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-16 23:12:43 +00:00
Upgrade xorm to v1.0.3 (#12210)
Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
3973a4609e
commit
d08996c7b9
49 changed files with 2115 additions and 1783 deletions
5
vendor/xorm.io/xorm/dialects/mssql.go
generated
vendored
5
vendor/xorm.io/xorm/dialects/mssql.go
generated
vendored
|
@ -231,6 +231,7 @@ func (db *mssql) SQLType(c *schemas.Column) string {
|
|||
} else if strings.EqualFold(c.Default, "false") {
|
||||
c.Default = "0"
|
||||
}
|
||||
return res
|
||||
case schemas.Serial:
|
||||
c.IsAutoIncrement = true
|
||||
c.IsPrimaryKey = true
|
||||
|
@ -270,8 +271,8 @@ func (db *mssql) SQLType(c *schemas.Column) string {
|
|||
res = t
|
||||
}
|
||||
|
||||
if res == schemas.Int {
|
||||
return schemas.Int
|
||||
if res == schemas.Int || res == schemas.Bit || res == schemas.DateTime {
|
||||
return res
|
||||
}
|
||||
|
||||
hasLen1 := (c.Length > 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue