Run Registry Schema Migrations in Prefer Mode
Summary
Implement database schema migration execution in when Container Registry is configured with metadata database "prefer mode".
Context
As part of the Container Registry metadata database "prefer mode" implementation (Epic #19638), when the Container Registry operates in prefer mode, the database schema migrations need to be ran.
Currently, Omnibus may handle registry database migrations when the database is explicitly enabled. With the addition of prefer mode, we need to ensure that, the database schema migrations are executed appropriately when that is configured.
Problem
- Registry in prefer mode may connect to an uninitialized metadata database
- Database schema migrations need to be executed before the registry can operate with database metadata
Related Issues
- Epic: Container Registry: Metadata Database Prefer Mode #19638