migrate script updated