20230328100440_add_custom_payload_webhooks.rb 376 B

12345678910111213
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class AddCustomPayloadWebhooks < ActiveRecord::Migration[6.1]
  3. def change
  4. return if !Setting.exists?(name: 'system_init_done')
  5. change_table :webhooks do |t|
  6. t.column :custom_payload, :text, limit: 500.kilobytes + 1, null: true
  7. end
  8. Webhook.reset_column_information
  9. end
  10. end