Campo query bloccato per i badge di sistema

Questo è il mio primo argomento da quando sono diventato un membro qui, 222 giorni fa.

  1. Come posso copiare-incollare questo codice?

  2. Voglio assegnare un badge per 25 inviti riusciti. Quindi, devo solo modificare il valore HAVING COUNT (*) >= 5 in HAVING COUNT (*) >= 25 e impostare anche il tipo di badge su Oro. Ho ragione?

Ho trovato un argomento simile "Promoter" Badge broken?, ma volevo solo confermare, perché non capisco davvero la programmazione.

Scusa per la domanda stupida.

1 Mi Piace

Here are the steps for enabling the SQL Badge Queries

6 Mi Piace

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.

1 Mi Piace

You can find the badge query SQL here: discourse/lib/badge_queries.rb at main · discourse/discourse · GitHub

5 Mi Piace

Thank you very much Simon.
I put wrong keyword in searching the code in the repository.
After I found the sql query, I still confuse.

I want to open another support topic, to make another question relating to this.
Thank you.

1 Mi Piace

This topic was automatically closed after 33 hours. New replies are no longer allowed.