diff options
author | Unknwon <u@gogs.io> | 2015-08-10 22:59:12 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-10 22:59:12 +0800 |
commit | 2aea247208d4429d111fb9725c16a8e9ea24860f (patch) | |
tree | b835ada77bdd98ffbf3d63c391aa36dc0309b93c /models | |
parent | 2cef9ef5e2428318ff29d9da6d34e122fe0c9586 (diff) | |
download | gitea-2aea247208d4429d111fb9725c16a8e9ea24860f.tar.gz gitea-2aea247208d4429d111fb9725c16a8e9ea24860f.zip |
minor fix on #1460
Diffstat (limited to 'models')
-rw-r--r-- | models/migrations/migrations.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index c7900743f1..865cefb4c7 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -96,6 +96,9 @@ func Migrate(x *xorm.Engine) error { } v := currentVersion.Version + if int(v) > len(migrations) { + return nil + } for i, m := range migrations[v-_MIN_DB_VER:] { log.Info("Migration: %s", m.Description()) if err = m.Migrate(x); err != nil { |