Unable to edit type or delete badges created programatically


(Michael Congiusta) #1

I created a Discourse plugin (based off Sam’s Github Badges plugin) to enable badges to be awarded to users for actions committed outside of Discourse itself.

I’d now like to change the type from bronze to silver or gold for some of the badges, but find that the dropdown is blocked. I’m also unable to delete the badges, so I can’t remove the badges and recreate them either.


Why can't I edit system badge type colour Gold,Silver,Bronze?
(Sam Saffron) #2

Be sure ids are larger than 100, first 100 are system reserved


Prevent Badge IDs of less than 100?
(Michael Congiusta) #3

Given that the badges are created already, it looks like my only option is to modify them directly in the database. Is that correct?


(Sam Saffron) #4

Pretty much


(Michael Congiusta) #5

Alright, thanks - to the terminal it is! :slight_smile: