Us6511

Fixed migrate script to be run twice