summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/migrations/migrations.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go
index 30c69fa301..d9a971e057 100644
--- a/models/migrations/migrations.go
+++ b/models/migrations/migrations.go
@@ -97,6 +97,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 {