diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-28 15:08:36 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-28 15:08:36 +0000 |
commit | ee7db70e1185876e97eca97ce8efabfc64c360b9 (patch) | |
tree | 4c09297635be43c0189a2a85dd2a38d5f72bc523 /db/migrate/20230323191750_add_shard_settings_to_search_indices.rb | |
parent | 3fa33c82f9c49f4b53ddcf017fe77f1bff48a460 (diff) | |
download | gitlab-ce-ee7db70e1185876e97eca97ce8efabfc64c360b9.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/migrate/20230323191750_add_shard_settings_to_search_indices.rb')
-rw-r--r-- | db/migrate/20230323191750_add_shard_settings_to_search_indices.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20230323191750_add_shard_settings_to_search_indices.rb b/db/migrate/20230323191750_add_shard_settings_to_search_indices.rb new file mode 100644 index 00000000000..b032e3b8a61 --- /dev/null +++ b/db/migrate/20230323191750_add_shard_settings_to_search_indices.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +class AddShardSettingsToSearchIndices < Gitlab::Database::Migration[2.1] + def change + add_column :search_indices, :number_of_shards, :integer, default: 2, null: false + add_column :search_indices, :number_of_replicas, :integer, default: 1, null: false + end +end |