FIX: kick system badges out of other

This commit is contained in:
Sam 2014-07-27 11:30:55 +10:00
parent 3d6e2713d1
commit 782773f774
1 changed files with 2 additions and 2 deletions

View File

@ -30,12 +30,12 @@ BadgeGrouping.seed do |g|
end end
# BUGFIX # BUGFIX
Badge.exec_sql 'UPDATE badges Badge.exec_sql "UPDATE badges
SET badge_grouping_id = -1 SET badge_grouping_id = -1
WHERE NOT EXISTS ( WHERE NOT EXISTS (
SELECT 1 FROM badge_groupings g SELECT 1 FROM badge_groupings g
WHERE g.id = badge_grouping_id WHERE g.id = badge_grouping_id
)' ) OR (id < 100 AND badge_grouping_id = #{BadgeGrouping::Other} )"
# Trust level system badges. # Trust level system badges.
trust_level_badges = [ trust_level_badges = [