needed next_migration_number method