Prepare for migration