20220912142730_issue_3671_http_logs_unlimit_request_response.rb 436 B

1234567891011121314151617
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class Issue3671HttpLogsUnlimitRequestResponse < ActiveRecord::Migration[6.1]
  3. def up
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. change_table :http_logs do |t|
  7. t.change :url, :text
  8. t.change :request, :text
  9. t.change :response, :text
  10. end
  11. HttpLog.reset_column_information
  12. end
  13. end