diff options
author | Valery Sizov <valery@gitlab.com> | 2019-08-01 15:03:08 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2019-08-01 20:38:07 +0300 |
commit | f519a4b72f81a1e3c81e5e684d236bbe30e0dd2d (patch) | |
tree | 469cbc073884f0a8f30ae7fd474b699c4ac47c13 /db | |
parent | beb7d8922746942f1f4108108b04859ba61ea1ea (diff) | |
download | gitlab-ce-f519a4b72f81a1e3c81e5e684d236bbe30e0dd2d.tar.gz |
Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3809ce-docker_image_replication
Introducing Docker Registry replication
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20190612111404_add_geo_container_sync_capacity.rb | 13 | ||||
-rw-r--r-- | db/schema.rb | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20190612111404_add_geo_container_sync_capacity.rb b/db/migrate/20190612111404_add_geo_container_sync_capacity.rb new file mode 100644 index 00000000000..d4cd569f460 --- /dev/null +++ b/db/migrate/20190612111404_add_geo_container_sync_capacity.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class AddGeoContainerSyncCapacity < ActiveRecord::Migration[5.1] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def change + change_table :geo_nodes do |t| + t.column :container_repositories_max_capacity, :integer, default: 10, null: false + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 6f5fc6c65eb..804f77b91de 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1435,6 +1435,7 @@ ActiveRecord::Schema.define(version: 2019_07_29_090456) do t.integer "minimum_reverification_interval", default: 7, null: false t.string "internal_url" t.string "name", null: false + t.integer "container_repositories_max_capacity", default: 10, null: false t.index ["access_key"], name: "index_geo_nodes_on_access_key" t.index ["name"], name: "index_geo_nodes_on_name", unique: true t.index ["primary"], name: "index_geo_nodes_on_primary" |