update migrate script