]> source.dussan.org Git - redmine.git/commitdiff
Show warning in admin/info when there are pending migrations (#35562).
authorGo MAEDA <maeda@farend.jp>
Fri, 30 Jul 2021 03:51:19 +0000 (03:51 +0000)
committerGo MAEDA <maeda@farend.jp>
Fri, 30 Jul 2021 03:51:19 +0000 (03:51 +0000)
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@21110 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/admin_controller.rb
config/locales/en.yml

index a7404abccd38f761e9cb96abf4407b8c9fc67607..27e87670dcf155df6dc1ba0ca675e4524713bc66 100644 (file)
@@ -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?]
index e72e1bf8977aaa492d9bb80df498c3522de11c24..79ed757af48013daaed96e6237cb928415546812 100644 (file)
@@ -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)