20161117000001_job_unable_to_create_issue_432.rb 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. class JobUnableToCreateIssue432 < ActiveRecord::Migration[4.2]
  3. def up
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. ActiveRecord::Migration.change_table :jobs do |t|
  7. t.change :timeplan, :string, limit: 2500
  8. t.change :condition, :text, limit: 500.kilobytes + 1
  9. t.change :perform, :text, limit: 500.kilobytes + 1
  10. end
  11. ActiveRecord::Migration.change_table :triggers do |t|
  12. t.change :condition, :text, limit: 500.kilobytes + 1
  13. t.change :perform, :text, limit: 500.kilobytes + 1
  14. end
  15. ActiveRecord::Migration.change_table :overviews do |t|
  16. t.change :condition, :text, limit: 500.kilobytes + 1
  17. end
  18. ActiveRecord::Migration.change_table :report_profiles do |t|
  19. t.change :condition, :text, limit: 500.kilobytes + 1
  20. end
  21. ActiveRecord::Migration.change_table :slas do |t|
  22. t.change :condition, :text, limit: 500.kilobytes + 1
  23. end
  24. ActiveRecord::Migration.change_table :macros do |t|
  25. t.change :perform, :text, limit: 500.kilobytes + 1
  26. end
  27. ActiveRecord::Migration.change_table :postmaster_filters do |t|
  28. t.change :match, :text, limit: 500.kilobytes + 1
  29. t.change :perform, :text, limit: 500.kilobytes + 1
  30. end
  31. ActiveRecord::Migration.change_table :stats_stores do |t|
  32. t.change :data, :string, limit: 5000
  33. end
  34. Cache.clear
  35. end
  36. end