Modified oauth migration script