finished deal migration script