mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
upgrade xorm to v1.0.6 (#14246)
This commit is contained in:
parent
8db0372a45
commit
126c9331d6
19 changed files with 91 additions and 24 deletions
5
vendor/xorm.io/xorm/dialects/mssql.go
generated
vendored
5
vendor/xorm.io/xorm/dialects/mssql.go
generated
vendored
|
@ -368,6 +368,11 @@ func (db *mssql) DropTableSQL(tableName string) (string, bool) {
|
|||
"DROP TABLE \"%s\"", tableName, tableName), true
|
||||
}
|
||||
|
||||
func (db *mssql) ModifyColumnSQL(tableName string, col *schemas.Column) string {
|
||||
s, _ := ColumnString(db.dialect, col, false)
|
||||
return fmt.Sprintf("ALTER TABLE %s ALTER COLUMN %s", tableName, s)
|
||||
}
|
||||
|
||||
func (db *mssql) IndexCheckSQL(tableName, idxName string) (string, []interface{}) {
|
||||
args := []interface{}{idxName}
|
||||
sql := "select name from sysindexes where id=object_id('" + tableName + "') and name=?"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue