We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b2c8ca commit a79af9cCopy full SHA for a79af9c
models/migrations/v45.go
@@ -17,7 +17,7 @@ func removeIndexColumnFromRepoUnitTable(x *xorm.Engine) (err error) {
17
case setting.UseSQLite3:
18
log.Warn("Unable to drop columns in SQLite")
19
case setting.UseMySQL, setting.UsePostgreSQL, setting.UseMSSQL, setting.UseTiDB:
20
- if _, err := x.Exec("ALTER TABLE repo_unit DROP COLUMN index"); err != nil {
+ if _, err := x.Exec("ALTER TABLE repo_unit DROP COLUMN `index`"); err != nil {
21
return fmt.Errorf("DROP COLUMN index: %v", err)
22
}
23
default:
0 commit comments