add fix command for upgrade
This commit is contained in:
parent
0da329462e
commit
cdc843f06b
3 changed files with 51 additions and 0 deletions
6
models/fix.go
Normal file
6
models/fix.go
Normal file
|
@ -0,0 +1,6 @@
|
|||
package models
|
||||
|
||||
func Fix() error {
|
||||
_, err := orm.Exec("alter table repository drop column num_releases")
|
||||
return err
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue