Fix user avatar name (#8547)

Migrate avatar names to include user ID and the md5 hash.
This commit is contained in:
Masudur Rahman 2019-12-28 00:27:59 +06:00 committed by zeripath
parent 145c1ea0b6
commit e3a5b83212
3 changed files with 119 additions and 1 deletions

View file

@ -284,6 +284,8 @@ var migrations = []Migration{
NewMigration("new feature: change target branch of pull requests", featureChangeTargetBranch),
// v114 -> v115
NewMigration("Remove authentication credentials from stored URL", sanitizeOriginalURL),
// v115 -> v116
NewMigration("add user_id prefix to existing user avatar name", renameExistingUserAvatarName),
}
// Migrate database to current version