The `Repository` initial `RepositoryVersion` was not created by [0003_inbound_repo_per_namespace](https://github.com/ansible/galaxy_ng/blob/master/galaxy_ng/app/migrations/0003_inbound_repo_per_namespace.py), since the `Repository.save()` method is overridden with extra logic and migrations do not apply model methods.
As seen in CI environment this prevents import to the repo as it references repo.latest().
A new migration will be needed with necessary model method logic brought over into the migration, to re-create or update these repositories and distributions.