Set dirty flag and update/store statistics after migration