migrate by file