mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
BUGFIX, selecting uploaded avatars incorrectly in some cases
This commit is contained in:
parent
252e93d0f2
commit
70ae998059
@ -16,6 +16,13 @@ class AddUserAvatars < ActiveRecord::Migration
|
||||
SELECT id, uploaded_avatar_id
|
||||
FROM users
|
||||
SQL
|
||||
|
||||
execute <<SQL
|
||||
UPDATE users SET uploaded_avatar_id = NULL
|
||||
WHERE NOT use_uploaded_avatar
|
||||
SQL
|
||||
|
||||
# NOTE we should nuke use_uploaded_avatar later on
|
||||
end
|
||||
|
||||
def down
|
||||
|
Loading…
Reference in New Issue
Block a user