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
}