20170215000001_telegram_support.rb 617 B

12345678910111213141516171819202122232425
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. class TelegramSupport < ActiveRecord::Migration[4.2]
  3. def up
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. Permission.create_if_not_exists(
  7. name: 'admin.channel_telegram',
  8. note: 'Manage %s',
  9. preferences: {
  10. translations: ['Channel - Telegram']
  11. },
  12. )
  13. Ticket::Article::Type.create_if_not_exists(
  14. name: 'telegram personal-message',
  15. communication: true,
  16. updated_by_id: 1,
  17. created_by_id: 1,
  18. )
  19. end
  20. end