diff options
author | zeripath <art27@cantab.net> | 2021-02-08 03:09:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-08 11:09:14 +0800 |
commit | 378acc9d966554299e4a7dbe15e6e41026963653 (patch) | |
tree | cfe875029a9c6cb35939fbd0a64ffdc965b2f9b7 /models/migrations/migrations.go | |
parent | 98827e99f63178c43187e686ffc4bf03d9d18d36 (diff) | |
download | gitea-378acc9d966554299e4a7dbe15e6e41026963653.tar.gz gitea-378acc9d966554299e4a7dbe15e6e41026963653.zip |
Use OldRef instead of CommitSHA for DeleteBranch comments (#14604)
Fix #14545
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'models/migrations/migrations.go')
-rw-r--r-- | models/migrations/migrations.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index c1a3b186cf..c926ee6ccf 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -284,6 +284,8 @@ var migrations = []Migration{ NewMigration("Add user redirect", addUserRedirect), // v168 -> v169 NewMigration("Recreate user table to fix default values", recreateUserTableToFixDefaultValues), + // v169 -> v170 + NewMigration("Update DeleteBranch comments to set the old_ref to the commit_sha", commentTypeDeleteBranchUseOldRef), } // GetCurrentDBVersion returns the current db version |