"Fossies" - the Fresh Open Source Software Archive

Member "db/migrate/20161117000001_job_unable_to_create_issue_432.rb" (25 Mar 2021, 1405 Bytes) of package /linux/www/zammad-4.0.0.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ruby source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "20161117000001_job_unable_to_create_issue_432.rb": 3.4.1_vs_3.5.0.

    1 class JobUnableToCreateIssue432 < ActiveRecord::Migration[4.2]
    2   def up
    3     # return if it's a new setup
    4     return if !Setting.exists?(name: 'system_init_done')
    5 
    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 
   12     ActiveRecord::Migration.change_table :triggers do |t|
   13       t.change :condition, :text, limit: 500.kilobytes + 1
   14       t.change :perform, :text, limit: 500.kilobytes + 1
   15     end
   16 
   17     ActiveRecord::Migration.change_table :overviews do |t|
   18       t.change :condition, :text, limit: 500.kilobytes + 1
   19     end
   20 
   21     ActiveRecord::Migration.change_table :report_profiles do |t|
   22       t.change :condition, :text, limit: 500.kilobytes + 1
   23     end
   24     ActiveRecord::Migration.change_table :slas do |t|
   25       t.change :condition, :text, limit: 500.kilobytes + 1
   26     end
   27 
   28     ActiveRecord::Migration.change_table :macros do |t|
   29       t.change :perform, :text, limit: 500.kilobytes + 1
   30     end
   31 
   32     ActiveRecord::Migration.change_table :postmaster_filters do |t|
   33       t.change :match, :text, limit: 500.kilobytes + 1
   34       t.change :perform, :text, limit: 500.kilobytes + 1
   35     end
   36 
   37     ActiveRecord::Migration.change_table :stats_stores do |t|
   38       t.change :data, :string, limit: 5000
   39     end
   40 
   41     Cache.clear
   42 
   43   end
   44 end