migrate script