Skip to content

Commit

Permalink
Merge branch '0.8.0' of github.com:gogits/gogs into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
unknwon committed Nov 25, 2015
2 parents 253513c + eb30cba commit 2f28a03
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions models/migrations/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ func Migrate(x *xorm.Engine) error {
}

v := currentVersion.Version
if _MIN_DB_VER > v {
log.Fatal(4, "Gogs no longer supports auto-migration from your previously installed version. Please try to upgrade to a lower version first, then upgrade to current version.")
return nil
}

if int(v-_MIN_DB_VER) > len(migrations) {
// User downgraded Gogs.
currentVersion.Version = int64(len(migrations) + _MIN_DB_VER)
Expand Down

0 comments on commit 2f28a03

Please sign in to comment.