From 8da05162ee09357b3eb54b3b4471629cb22d9464 Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Wed, 22 Sep 2021 08:02:16 +0100 Subject: [PATCH] Fixes #3759 - Login failed after upgrade to zammad 5.0. --- ...20210921112300_issue_3751_missing_workflow_screens.rb | 2 +- db/migrate/20210922090000_issue_3759_cache_clear.rb | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20210922090000_issue_3759_cache_clear.rb diff --git a/db/migrate/20210921112300_issue_3751_missing_workflow_screens.rb b/db/migrate/20210921112300_issue_3751_missing_workflow_screens.rb index 757ce2bf8..f1eaade52 100644 --- a/db/migrate/20210921112300_issue_3751_missing_workflow_screens.rb +++ b/db/migrate/20210921112300_issue_3751_missing_workflow_screens.rb @@ -1,6 +1,6 @@ # Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/ -class Issue3751MissingWorkflowScreens < ActiveRecord::Migration[5.2] +class Issue3751MissingWorkflowScreens < ActiveRecord::Migration[6.0] def change return if !Setting.exists?(name: 'system_init_done') diff --git a/db/migrate/20210922090000_issue_3759_cache_clear.rb b/db/migrate/20210922090000_issue_3759_cache_clear.rb new file mode 100644 index 000000000..407fc1706 --- /dev/null +++ b/db/migrate/20210922090000_issue_3759_cache_clear.rb @@ -0,0 +1,9 @@ +# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/ + +class Issue3759CacheClear < ActiveRecord::Migration[6.0] + def change + return if !Setting.exists?(name: 'system_init_done') + + Cache.clear + end +end