repair migrations