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

View file

@ -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 = [