1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-10-17 17:01:01 +00:00

Fix: Allow database adapter name "mysql2" in config/database.yml to be 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
This commit is contained in:
Go MAEDA 2024-12-19 01:08:21 +00:00
parent 331b955f47
commit 1de6663ceb

View File

@ -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/