diff options
Diffstat (limited to 'models/migrations')
-rw-r--r-- | models/migrations/migrations.go | 2 | ||||
-rw-r--r-- | models/migrations/v36.go | 15 |
2 files changed, 17 insertions, 0 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index ae15c9f479..437b63f604 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -120,6 +120,8 @@ var migrations = []Migration{ NewMigration("give all units to owner teams", giveAllUnitsToOwnerTeams), // v35 -> v36 NewMigration("adds comment to an action", addCommentIDToAction), + // v36 -> v37 + NewMigration("regenerate git hooks", regenerateGitHooks36), } // Migrate database to current version diff --git a/models/migrations/v36.go b/models/migrations/v36.go new file mode 100644 index 0000000000..06f76a26d6 --- /dev/null +++ b/models/migrations/v36.go @@ -0,0 +1,15 @@ +// Copyright 2017 The Gitea Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +package migrations + +import ( + "code.gitea.io/gitea/models" + + "github.com/go-xorm/xorm" +) + +func regenerateGitHooks36(x *xorm.Engine) (err error) { + return models.SyncRepositoryHooks() +} |