Skip to content

Commit

Permalink
Fix: Allow database adapter name "mysql2" in config/database.yml to b…
Browse files Browse the repository at this point in the history
…e quoted (#42013).

In Redmine 6.0.2 and 5.1.5, due to the change introduced in r23269, using the quoted adapter name `"mysql2"` causes Redmine to fail to start with the error: "Unknown database adapter `"mysql2"` found in config/database.yml".


git-svn-id: https://svn.redmine.org/redmine/trunk@23408 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information
vividtone committed Dec 19, 2024
1 parent 331b955 commit 1de6663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ if File.exist?(database_file)
if adapters.any?
adapters.each do |adapter|
case adapter.strip
when 'mysql2'
when /mysql2/
gem 'mysql2', '~> 0.5.0'
gem "with_advisory_lock"
when /postgresql/
Expand Down

0 comments on commit 1de6663

Please sign in to comment.