Skip to content

Commit

Permalink
Fixes zammad#3777 - misspelled KnowledgeBase constant breaks update.
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsteneckel committed Sep 29, 2021
1 parent bf6da24 commit 6d8f5b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/migrate/20210923172256_issue_2619_kb_header_link_color.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ class Issue2619KbHeaderLinkColor < ActiveRecord::Migration[6.0]
def up
return if !Setting.exists?(name: 'system_init_done')

add_column :knowledge_bases, :color_header_link, :string, limit: 25, null: false, default: 'hsl(206,8%,50%)'
add_column :knowledge_bases, :color_header_link, :string, limit: 25, null: false, default: 'hsl(206,8%,50%)' # rubocop:disable Zammad/ExistsResetColumnInformation
change_column_default :knowledge_bases, :color_header_link, nil
KnowledgeBasis.reset_column_information
KnowledgeBase.reset_column_information
end
end

0 comments on commit 6d8f5b7

Please sign in to comment.