update the migrate script