diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-23 21:06:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-23 21:06:07 +0300 |
commit | 7f0a4a64d0bc59b184ae3ee578adb6ebd3c48bf7 (patch) | |
tree | 74aa541f76b8d7cd692982ce46c0013a9b666172 /db | |
parent | b3f7042d06c53e5d4b8cad42e1b2679d0450f1a7 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20191009100244_add_geo_design_repository_counters.rb | 16 | ||||
-rw-r--r-- | db/schema.rb | 4 |
2 files changed, 20 insertions, 0 deletions
diff --git a/db/migrate/20191009100244_add_geo_design_repository_counters.rb b/db/migrate/20191009100244_add_geo_design_repository_counters.rb new file mode 100644 index 00000000000..26387453f88 --- /dev/null +++ b/db/migrate/20191009100244_add_geo_design_repository_counters.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +class AddGeoDesignRepositoryCounters < ActiveRecord::Migration[5.1] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def change + change_table :geo_node_statuses do |t| + t.column :design_repositories_count, :integer + t.column :design_repositories_synced_count, :integer + t.column :design_repositories_failed_count, :integer + t.column :design_repositories_registry_count, :integer + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 237f5ab4732..36f7bba904b 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1650,6 +1650,10 @@ ActiveRecord::Schema.define(version: 2019_10_17_045817) do t.integer "container_repositories_synced_count" t.integer "container_repositories_failed_count" t.integer "container_repositories_registry_count" + t.integer "design_repositories_count" + t.integer "design_repositories_synced_count" + t.integer "design_repositories_failed_count" + t.integer "design_repositories_registry_count" t.index ["geo_node_id"], name: "index_geo_node_statuses_on_geo_node_id", unique: true end |