Migration runs just before the main loop starts. It's just a sequence of local directory and file renames.