Master bug#5189

This is not a good option. It could cause hundreds of thousands of tickets to be processed with many SQL calls. Please refer to my original proposal to solve this with one update call. You'll also need to pass the old queue data to the event (as some events in Ticket.pm do) so that you can determine if the queue was renamed, and only in this case you need to take action.