2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2021-03-08 13:13:15 +00:00
|
|
|
class Issue3446Microsoft365Tenants < ActiveRecord::Migration[5.2]
|
|
|
|
def up
|
|
|
|
return if !Setting.exists?(name: 'system_init_done')
|
|
|
|
|
|
|
|
setting = Setting.find_by name: 'auth_microsoft_office365_credentials'
|
|
|
|
setting.options[:form].push({
|
|
|
|
display: 'App Tenant ID',
|
|
|
|
null: true,
|
|
|
|
name: 'app_tenant',
|
|
|
|
tag: 'input',
|
|
|
|
placeholder: 'common',
|
|
|
|
})
|
|
|
|
|
|
|
|
setting.save!
|
|
|
|
end
|
|
|
|
end
|