Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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.rb8
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