20230328093547_webhooks_basic_auth.rb 443 B

123456789101112
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class WebhooksBasicAuth < ActiveRecord::Migration[6.1]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. add_column :webhooks, :basic_auth_username, :string, limit: 250, null: true
  7. add_column :webhooks, :basic_auth_password, :string, limit: 250, null: true
  8. Webhook.reset_column_information
  9. end
  10. end