From 6d8f5b7d958bbfed431d78aed4461f0bc2c79dae Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Wed, 29 Sep 2021 12:16:16 +0200 Subject: [PATCH] Fixes #3777 - misspelled KnowledgeBase constant breaks update. --- db/migrate/20210923172256_issue_2619_kb_header_link_color.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrate/20210923172256_issue_2619_kb_header_link_color.rb b/db/migrate/20210923172256_issue_2619_kb_header_link_color.rb index 8c7098004..b2b39ea8b 100644 --- a/db/migrate/20210923172256_issue_2619_kb_header_link_color.rb +++ b/db/migrate/20210923172256_issue_2619_kb_header_link_color.rb @@ -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