Create new funciont migrateall