mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FIX: kick system badges out of other
This commit is contained in:
parent
3d6e2713d1
commit
782773f774
1 changed files with 2 additions and 2 deletions
|
@ -30,12 +30,12 @@ BadgeGrouping.seed do |g|
|
|||
end
|
||||
|
||||
# BUGFIX
|
||||
Badge.exec_sql 'UPDATE badges
|
||||
Badge.exec_sql "UPDATE badges
|
||||
SET badge_grouping_id = -1
|
||||
WHERE NOT EXISTS (
|
||||
SELECT 1 FROM badge_groupings g
|
||||
WHERE g.id = badge_grouping_id
|
||||
)'
|
||||
) OR (id < 100 AND badge_grouping_id = #{BadgeGrouping::Other} )"
|
||||
|
||||
# Trust level system badges.
|
||||
trust_level_badges = [
|
||||
|
|
Loading…
Reference in a new issue