0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-09-27 09:34:22 -04:00

add fix command for upgrade

This commit is contained in:
Lunny Xiao
2014-04-30 10:23:43 +08:00
parent 0da329462e
commit cdc843f06b
3 changed files with 51 additions and 0 deletions

6
models/fix.go Normal file
View File

@@ -0,0 +1,6 @@
package models
func Fix() error {
_, err := orm.Exec("alter table repository drop column num_releases")
return err
}