2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2019-06-20 10:45:27 +00:00
|
|
|
class SettingEsMultiIndex < ActiveRecord::Migration[5.1]
|
|
|
|
def up
|
|
|
|
|
|
|
|
# return if it's a new setup
|
2020-08-03 08:35:43 +00:00
|
|
|
return if !Setting.exists?(name: 'system_init_done')
|
2019-06-20 10:45:27 +00:00
|
|
|
|
|
|
|
Setting.create_if_not_exists(
|
|
|
|
title: 'Elasticsearch Multi Index',
|
|
|
|
name: 'es_multi_index',
|
|
|
|
area: 'SearchIndex::Elasticsearch',
|
|
|
|
description: 'Define if Elasticsearch is using multiple indexes.',
|
|
|
|
state: false,
|
|
|
|
preferences: { online_service_disable: true },
|
|
|
|
frontend: false
|
|
|
|
)
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|