Fixed that migration history can not be recoreded.