FIX: kick system badges out of other
This commit is contained in:
parent
3d6e2713d1
commit
782773f774
|
@ -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 = [
|
||||||
|
|
Loading…
Reference in New Issue