That did it, @michaeld! Nice work. @Olivier_Baillon, you can mark Michael’s post as the solution!
If anyone else has this, you’d do something like:
cd /var/discourse
./launcher enter app
rails c
Group.all.pluck(:id,:flair_icon,:flair_upload_id)
# for the groups that have `flair_upload_id` something like
g=Group.find(GROUP_ID_FROM_THE_LIST) # that's id not flair_upload_id
g.flair_upload
g.save
There are more elegant ways, but if you have just a few this should get you started.