20240314093207_trigger_scheduler_localization_improvements.rb 631 B

123456789101112131415161718192021
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class TriggerSchedulerLocalizationImprovements < ActiveRecord::Migration[7.0]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. change_table :triggers do |t|
  7. t.string :localization, limit: 20, null: true
  8. t.string :timezone, limit: 250, null: true
  9. end
  10. Trigger.reset_column_information
  11. change_table :jobs do |t|
  12. t.string :localization, limit: 20, null: true
  13. t.string :timezone, limit: 250, null: true
  14. end
  15. Job.reset_column_information
  16. end
  17. end