2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2019-08-16 06:47:32 +00:00
|
|
|
class ObjectManagerAttributeTicketArticleBodyMaxlengthChange < ActiveRecord::Migration[5.1]
|
|
|
|
def up
|
2020-08-03 08:35:43 +00:00
|
|
|
return if !Setting.exists?(name: 'system_init_done')
|
2019-08-16 06:47:32 +00:00
|
|
|
|
|
|
|
attribute = ObjectManager::Attribute.get(
|
|
|
|
object: 'TicketArticle',
|
|
|
|
name: 'body',
|
|
|
|
)
|
|
|
|
return if !attribute
|
|
|
|
|
|
|
|
attribute.data_option[:maxlength] = 150_000
|
|
|
|
attribute.save!
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|