core: Data migration for last_delivery on groups #541