diff --git a/db/migrate/20210827133800_issue_3707_checkmk.rb b/db/migrate/20210827133800_issue_3707_checkmk.rb new file mode 100644 index 000000000..649fcc556 --- /dev/null +++ b/db/migrate/20210827133800_issue_3707_checkmk.rb @@ -0,0 +1,23 @@ +# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/ + +class Issue3707Checkmk < ActiveRecord::Migration[6.0] + def change + # return if it's a new setup + return if !Setting.exists?(name: 'system_init_done') + + Setting.find_by(name: 'check_mk_auto_close').update(options: { + form: [ + { + display: '', + null: true, + name: 'check_mk_auto_close', + tag: 'boolean', + options: { + true => 'yes', + false => 'no', + }, + }, + ], + }) + end +end diff --git a/db/seeds/settings.rb b/db/seeds/settings.rb index f54d49343..39ff8a07d 100644 --- a/db/seeds/settings.rb +++ b/db/seeds/settings.rb @@ -3888,7 +3888,7 @@ Setting.create_if_not_exists( { display: '', null: true, - name: 'checkmk_auto_close', + name: 'check_mk_auto_close', tag: 'boolean', options: { true => 'yes',