Skip to content

Commit

Permalink
warn + exit(1) = abort
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed Nov 20, 2024
1 parent ae6632b commit 809ea7f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions config/initializers/03-db_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

if (db_config = ActiveRecord::Base.configurations.configs_for(env_name: env)[0]) &&
db_config.configuration_hash["adapter"]&.start_with?("mysql")
warn <<~ERROR
abort <<~ERROR
======= INCOMPATIBLE DATABASE DETECTED =======
Your database is set up for use with a MySQL or MySQL-compatible variant.
This installation of OpenProject no longer supports these variants.
Expand All @@ -45,8 +45,4 @@
==============================================
ERROR

# rubocop:disable Rails/Exit
Kernel.exit 1
# rubocop:enable Rails/Exit
end

0 comments on commit 809ea7f

Please sign in to comment.