From a6a8ef728c88fd15d5d9e993e829b88ee2108061 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 30 Jul 2021 03:51:19 +0000 Subject: [PATCH] Show warning in admin/info when there are pending migrations (#35562). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21110 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/admin_controller.rb | 1 + config/locales/en.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index a7404abcc..27e87670d 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -76,6 +76,7 @@ class AdminController < ApplicationController [:text_default_administrator_account_changed, User.default_admin_account_changed?], [:text_file_repository_writable, File.writable?(Attachment.storage_path)], ["#{l :text_plugin_assets_writable} (./public/plugin_assets)", File.writable?(Redmine::Plugin.public_directory)], + [:text_all_migrations_have_been_run, !ActiveRecord::Base.connection.migration_context.needs_migration?], [:text_minimagick_available, Object.const_defined?(:MiniMagick)], [:text_convert_available, Redmine::Thumbnail.convert_available?], [:text_gs_available, Redmine::Thumbnail.gs_available?] diff --git a/config/locales/en.yml b/config/locales/en.yml index e72e1bf89..79ed757af 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1242,6 +1242,7 @@ en: text_default_administrator_account_changed: Default administrator account changed text_file_repository_writable: Attachments directory writable text_plugin_assets_writable: Plugin assets directory writable + text_all_migrations_have_been_run: All database migrations have been run text_minimagick_available: MiniMagick available (optional) text_convert_available: ImageMagick convert available (optional) text_gs_available: ImageMagick PDF support available (optional) -- 2.39.5