20211126064735_translation_string_length.rb 552 B

1234567891011121314
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class TranslationStringLength < ActiveRecord::Migration[6.0]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. # Increase translation string length from 500 to 3000.
  7. change_column(:translations, :source, :string, limit: 3000)
  8. change_column(:translations, :target, :string, limit: 3000)
  9. change_column(:translations, :target_initial, :string, limit: 3000)
  10. Translation.reset_column_information
  11. end
  12. end