From 6efafd37aee3ae0676a9d8bc371236388754ce27 Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Wed, 29 Sep 2021 15:18:47 +0100 Subject: [PATCH] Fixes #3776 - Force users to reload after system migration. --- .../20210929161701_reload_after_core_workflow.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 db/migrate/20210929161701_reload_after_core_workflow.rb diff --git a/db/migrate/20210929161701_reload_after_core_workflow.rb b/db/migrate/20210929161701_reload_after_core_workflow.rb new file mode 100644 index 000000000..a936e3653 --- /dev/null +++ b/db/migrate/20210929161701_reload_after_core_workflow.rb @@ -0,0 +1,11 @@ +# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/ + +class ReloadAfterCoreWorkflow < ActiveRecord::Migration[4.2] + def up + + # return if it's a new setup + return if !Setting.exists?(name: 'system_init_done') + + AppVersion.set(true, 'app_version') + end +end