Replace Gogs with Gitea (#520)

This commit is contained in:
Bwko authored and Lunny Xiao committed 2016-12-28 16:33:21 +08:00
1 parent f686a32eac
commit 331316894e
8 files changed
+29 -29

No files matched your search

+2 -2
View File
@@ -103,13 +103,13 @@ func Migrate(x *xorm.Engine) error {
v := currentVersion.Version
if minDBVersion > v {
log.Fatal(4, `Gogs no longer supports auto-migration from your previously installed version.
log.Fatal(4, `Gitea no longer supports auto-migration from your previously installed version.
Please try to upgrade to a lower version (>= v0.6.0) first, then upgrade to current version.`)
return nil
}
if int(v-minDBVersion) > len(migrations) {
// User downgraded Gogs.
// User downgraded Gitea.
currentVersion.Version = int64(len(migrations) + minDBVersion)
_, err = x.Id(1).Update(currentVersion)
return err