mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
BUGFIX, selecting uploaded avatars incorrectly in some cases
This commit is contained in:
parent
252e93d0f2
commit
70ae998059
1 changed files with 7 additions and 0 deletions
|
@ -16,6 +16,13 @@ class AddUserAvatars < ActiveRecord::Migration
|
||||||
SELECT id, uploaded_avatar_id
|
SELECT id, uploaded_avatar_id
|
||||||
FROM users
|
FROM users
|
||||||
SQL
|
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
|
end
|
||||||
|
|
||||||
def down
|
def down
|
||||||
|
|
Loading…
Reference in a new issue