In a support discussion titled ‘Locked query field for system badges’, iidbae, a new member, seeks help modifying a SQL badge query to award a Gold badge after 25 successful invitations, by changing HAVING COUNT(*) >= 5 to >= 25. They initially struggle with copying the code and understanding SQL, referencing a similar topic here. cpradio directs them to instructions for enabling SQL badge queries here. iidbae confirms they enabled SQL but the field remains locked, suspecting it’s for security. They also mention exploring GitHub without success. simon provides the direct link to the badge query SQL file: badge_queries.rb. iidbae thanks Simon, admitting they used the wrong search terms on GitHub, and although they found the SQL, they remain confused — planning to open a new topic for further questions. The discussion reflects a beginner’s effort to customize badge logic, with community support guiding them toward the right resources.
I want to give a badge for 25 successful invitations. So, I only need change the value HAVING COUNT (*) >= 5 into HAVING COUNT (*) >= 25, and give a Gold badge type too. Am I right?
I found similar topic "Promoter" Badge broken? but I just want to confirm, because I am not a really understand in coding.
Thank you Cpradio, yes I have enabled the SQL within 3 days, but its still locked.
I believe its for security purpose.
I tried to explore the Github too, but still does not know how to find the code line.