Read all versions from schema files in the migration check.

We were previously only gathering the first version which would give erroneous or misleading error messages.

@osheroff