-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Fix avatar enumable #1049
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix avatar enumable #1049
Conversation
@@ -88,6 +88,8 @@ var migrations = []Migration{ | |||
NewMigration("add external login user", addExternalLoginUser), | |||
// v19 -> v20 | |||
NewMigration("generate and migrate Git hooks", generateAndMigrateGitHooks), | |||
// v20 -> v21 | |||
NewMigration("use new avtar path name for security reason", useNewNameAvatars), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
LGTM |
LGTM, but I tried in a dev environment with a user that didn't have an avatar, and it generated a new one. Is this the desired behavior? |
No. I think that's not a desired behavior. The migration will rename all the avatars on the data/avatars from to and the upload avatar name will be not . Only these two changes. |
LGTM |
Please fire an issue. |
This PR is making all my custom avatars (I have 2890 users, many which have custom avatars uploaded) be the same avatar! I added a few Printfs to the Migration, migrating up from v15, and I see this:
As you can see, there is no WHERE condition to set id = 4613! |
@richmahn what's your database? |
fix #718