fix mysql migration issue