Fixes #3777 - misspelled KnowledgeBase constant breaks update.
This commit is contained in:
parent
bf6da241d8
commit
6d8f5b7d95
1 changed files with 2 additions and 2 deletions
|
@ -4,8 +4,8 @@ class Issue2619KbHeaderLinkColor < ActiveRecord::Migration[6.0]
|
||||||
def up
|
def up
|
||||||
return if !Setting.exists?(name: 'system_init_done')
|
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
|
change_column_default :knowledge_bases, :color_header_link, nil
|
||||||
KnowledgeBasis.reset_column_information
|
KnowledgeBase.reset_column_information
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue