20230120163410_taskbars_add_apps_support.rb 415 B

123456789101112131415
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class TaskbarsAddAppsSupport < 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 :taskbars do |t|
  7. t.remove :client_id
  8. t.column :app, :string, null: false, default: 'desktop'
  9. end
  10. Taskbar.reset_column_information
  11. end
  12. end