1
0
Fork 0
forked from forgejo/forgejo

Replace Gogs with Gitea (#520)

This commit is contained in:
Bwko 2016-12-28 09:33:21 +01:00 committed by Lunny Xiao
parent f686a32eac
commit 331316894e
8 changed files with 29 additions and 29 deletions

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