mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-04 10:16:47 +02:00
upgrade xorm to v1.2.5 (#17177)
This commit is contained in:
parent
d30410675b
commit
ba1fdbcfdb
6 changed files with 8 additions and 8 deletions
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
|
@ -1052,7 +1052,7 @@ strk.kbt.io/projects/go/libravatar
|
|||
# xorm.io/builder v0.3.9
|
||||
## explicit
|
||||
xorm.io/builder
|
||||
# xorm.io/xorm v1.2.4
|
||||
# xorm.io/xorm v1.2.5
|
||||
## explicit
|
||||
xorm.io/xorm
|
||||
xorm.io/xorm/caches
|
||||
|
|
2
vendor/xorm.io/xorm/dialects/dialect.go
generated
vendored
2
vendor/xorm.io/xorm/dialects/dialect.go
generated
vendored
|
@ -206,7 +206,7 @@ func (db *Base) DropIndexSQL(tableName string, index *schemas.Index) string {
|
|||
// ModifyColumnSQL returns a SQL to modify SQL
|
||||
func (db *Base) ModifyColumnSQL(tableName string, col *schemas.Column) string {
|
||||
s, _ := ColumnString(db.dialect, col, false)
|
||||
return fmt.Sprintf("ALTER TABLE %s MODIFY COLUMN %s", tableName, s)
|
||||
return fmt.Sprintf("ALTER TABLE %s MODIFY COLUMN %s", db.quoter.Quote(tableName), s)
|
||||
}
|
||||
|
||||
// ForUpdateSQL returns for updateSQL
|
||||
|
|
2
vendor/xorm.io/xorm/dialects/mssql.go
generated
vendored
2
vendor/xorm.io/xorm/dialects/mssql.go
generated
vendored
|
@ -423,7 +423,7 @@ func (db *mssql) DropTableSQL(tableName string) (string, bool) {
|
|||
|
||||
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)
|
||||
return fmt.Sprintf("ALTER TABLE %s ALTER COLUMN %s", db.quoter.Quote(tableName), s)
|
||||
}
|
||||
|
||||
func (db *mssql) IndexCheckSQL(tableName, idxName string) (string, []interface{}) {
|
||||
|
|
4
vendor/xorm.io/xorm/dialects/postgres.go
generated
vendored
4
vendor/xorm.io/xorm/dialects/postgres.go
generated
vendored
|
@ -988,10 +988,10 @@ func (db *postgres) IsTableExist(queryer core.Queryer, ctx context.Context, tabl
|
|||
func (db *postgres) ModifyColumnSQL(tableName string, col *schemas.Column) string {
|
||||
if len(db.getSchema()) == 0 || strings.Contains(tableName, ".") {
|
||||
return fmt.Sprintf("alter table %s ALTER COLUMN %s TYPE %s",
|
||||
tableName, col.Name, db.SQLType(col))
|
||||
db.quoter.Quote(tableName), db.quoter.Quote(col.Name), db.SQLType(col))
|
||||
}
|
||||
return fmt.Sprintf("alter table %s.%s ALTER COLUMN %s TYPE %s",
|
||||
db.getSchema(), tableName, col.Name, db.SQLType(col))
|
||||
db.quoter.Quote(db.getSchema()), db.quoter.Quote(tableName), db.quoter.Quote(col.Name), db.SQLType(col))
|
||||
}
|
||||
|
||||
func (db *postgres) DropIndexSQL(tableName string, index *schemas.Index) string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue