This commit broke hook "message_update_7007". Range is not a method in UpdateQuery and current code produces fatal error (if at least 1 message exists before said update is ran):

PHP Fatal error:  Call to undefined method UpdateQuery::range()

Is the batch operation really needed there?

Comments

It's probably needed if there are already lots of Messages. It would be great if you could submit a patch that will find the next batch of IDs and update them. Possible?