diff options
author | Valery Sizov <valery@gitlab.com> | 2019-08-02 11:35:29 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2019-08-07 13:37:11 +0300 |
commit | 631113f9dae7f3404f3a40036ad7bfc786883016 (patch) | |
tree | 741515f60da8ec71d64514b30a62af027c0a6707 /db | |
parent | 55da8b279203f87a125f62fd4a5f4eec66af2ef2 (diff) | |
download | gitlab-ce-631113f9dae7f3404f3a40036ad7bfc786883016.tar.gz |
Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14943ce-docker_image_replication_node_status
Docker Registry Replication
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20190612111201_add_geo_container_repository_counters.rb | 16 | ||||
-rw-r--r-- | db/schema.rb | 4 |
2 files changed, 20 insertions, 0 deletions
diff --git a/db/migrate/20190612111201_add_geo_container_repository_counters.rb b/db/migrate/20190612111201_add_geo_container_repository_counters.rb new file mode 100644 index 00000000000..b73bb885ab7 --- /dev/null +++ b/db/migrate/20190612111201_add_geo_container_repository_counters.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +class AddGeoContainerRepositoryCounters < ActiveRecord::Migration[5.1] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def change + change_table :geo_node_statuses do |t| + t.column :container_repositories_count, :integer + t.column :container_repositories_synced_count, :integer + t.column :container_repositories_failed_count, :integer + t.column :container_repositories_registry_count, :integer + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 828e36aa96c..759740129b3 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1427,6 +1427,10 @@ ActiveRecord::Schema.define(version: 2019_08_02_235445) do t.integer "repositories_retrying_verification_count" t.integer "wikis_retrying_verification_count" t.integer "projects_count" + t.integer "container_repositories_count" + t.integer "container_repositories_synced_count" + t.integer "container_repositories_failed_count" + t.integer "container_repositories_registry_count" t.index ["geo_node_id"], name: "index_geo_node_statuses_on_geo_node_id", unique: true end |