Add registry-database migrate command to gitlab-ctl
The command will allow gitlab-ctl to interact with the configured registry metadata database. It adds the subcommand `migrate` to manage schema migrations for the database. The command interacts with a given database but does not do anything about provisioning the database. For more details see https://gitlab.com/gitlab-org/container-registry/-/issues/1108. Changelog: added
Showing
- files/gitlab-ctl-commands/lib/registry/migrate.rb 206 additions, 0 deletionsfiles/gitlab-ctl-commands/lib/registry/migrate.rb
- files/gitlab-ctl-commands/lib/registry/registry_database.rb 164 additions, 0 deletionsfiles/gitlab-ctl-commands/lib/registry/registry_database.rb
- files/gitlab-ctl-commands/registry_database.rb 33 additions, 0 deletionsfiles/gitlab-ctl-commands/registry_database.rb
- spec/chef/gitlab-ctl-commands/lib/registry/migrate_spec.rb 121 additions, 0 deletionsspec/chef/gitlab-ctl-commands/lib/registry/migrate_spec.rb
- spec/chef/gitlab-ctl-commands/lib/registry/registry_database_spec.rb 46 additions, 0 deletions...itlab-ctl-commands/lib/registry/registry_database_spec.rb
Loading
Please register or sign in to comment