How To Write Migration Scripts Using Open Upgrade Api

How To Write Migration Scripts Using Open Upgrade Api