summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-04-30 10:23:43 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-04-30 10:23:43 +0800
commitcdc843f06b90acf71211a684ba32cd92c765230d (patch)
treed1ab0c699db13ec2c2bc16032fe8c73ff0eb8b09 /models
parent0da329462ec4f9164a258ca4d2b1552a6166827e (diff)
downloadgitea-cdc843f06b90acf71211a684ba32cd92c765230d.tar.gz
gitea-cdc843f06b90acf71211a684ba32cd92c765230d.zip
add fix command for upgrade
Diffstat (limited to 'models')
-rw-r--r--models/fix.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/models/fix.go b/models/fix.go
new file mode 100644
index 0000000000..9fc141bd26
--- /dev/null
+++ b/models/fix.go
@@ -0,0 +1,6 @@
+package models
+
+func Fix() error {
+ _, err := orm.Exec("alter table repository drop column num_releases")
+ return err
+}