プロジェクト

全般

プロフィール

Vote #81903

未完了

Halt Redmine boot entirely instead of showing a warning in admin/info when there are pending migrations

Admin Redmine さんが4年以上前に追加. 4年以上前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Administration_8
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
8
version_id:
0
issue_org_id:
36933
author_id:
1565
assigned_to_id:
0
comments:
0
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

Starting with Redmine 5.0.0 admin/info shows a warning when there are pending migrations (#35562). I think it makes no sense to let Redmine boot at all if there are pending migrations. It might even lead to data corruption in the DB.
It might be better to raise an exception and halt the boot process altogether with an initializer (e.g. /config/initializers/05-check_pending_migrations.rb) containing:


if Rails.env.production?
  ActiveRecord::Migration.check_pending!
end

What do you think?

Admin Redmine さんが4年以上前に更新

  • カテゴリAdministration_8 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0